Vector Databases
Connect to vector databases from Delphi for semantic search, RAG, and AI-powered applications. Support for Pinecone and more.
Connect to vector databases from Delphi for semantic search, RAG, and AI-powered applications. Support for Pinecone and more.
uses
sgcAI_VectorDB;
var
VectorDB: TsgcAIVectorDB;
begin
VectorDB := TsgcAIVectorDB.Create(nil);
VectorDB.Provider := vdbPinecone;
VectorDB.ApiKey := 'your-api-key';
VectorDB.Upsert('index-1', Embeddings, Metadata);
Results := VectorDB.Query('index-1', QueryVector, 10);
end;