Documentation ¶ Index ¶ type QueryMatch type VectorDB Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type QueryMatch ¶ type QueryMatch struct { ID string `json:"id"` Score float32 `json:"score"` // Use "score" instead of "distance" Metadata map[string]string `json:"metadata"` } type VectorDB ¶ type VectorDB interface { UpsertEmbeddings(embeddings [][]float32, chunks []chunk.Chunk, uuid string) error Retrieve(questionEmbedding []float32, topK int, uuid string) ([]QueryMatch, error) } Source Files ¶ View all Source files vectordb.go Directories ¶ Show internal Expand all Path Synopsis pinecone qdrant Click to show internal directories. Click to hide internal directories.