Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArticleWithBody ¶
New struct that embeds graph.Article and adds Body field
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Struct for search client that contains OpenAI and Pinecone clients
type EmbeddingsRequest ¶
type FetchVectorsResponse ¶
type QueryParams ¶
type QueryResponse ¶
type QueryResponse struct { Matches []*QueryVector `json:"matches"` Namespace string `json:"namespace"` }
Data struct for query response
type QueryVector ¶
Matches are slices of QueryVector
type SearchResult ¶
type SearchResult struct { Name string ID string Path string Slug string Score float32 PubDate string }
Template for search results
type UpsertVectorsParams ¶
type UpsertVectorsResponse ¶
type UpsertVectorsResponse struct {
UpsertedCount int `json:"upsertedCount"`
}
Click to show internal directories.
Click to hide internal directories.