feat: Qdrant Vector Search support

Signed-off-by: Anush008 <anushshetty90@gmail.com>
This commit is contained in:
Anush008
2025-11-26 16:28:53 +05:30
committed by lyingbug
parent 3c3b457261
commit c7659c3d19
8 changed files with 725 additions and 58 deletions
@@ -0,0 +1,23 @@
package qdrant
import "github.com/qdrant/go-client/qdrant"
type qdrantRepository struct {
client *qdrant.Client
collectionName string
}
type QdrantVectorEmbedding struct {
Content string `json:"content"`
SourceID string `json:"source_id"`
SourceType int `json:"source_type"`
ChunkID string `json:"chunk_id"`
KnowledgeID string `json:"knowledge_id"`
KnowledgeBaseID string `json:"knowledge_base_id"`
Embedding []float32 `json:"embedding"`
}
type QdrantVectorEmbeddingWithScore struct {
QdrantVectorEmbedding
Score float64
}