Pinecone 벡터 데이터베이스
Delphi용 Pinecone 벡터 데이터베이스 통합. Embeddings를 저장하고, 유사도 검색을 수행하며, AI 기반 검색 시스템을 구축해 보세요.
Delphi용 Pinecone 벡터 데이터베이스 통합. Embeddings를 저장하고, 유사도 검색을 수행하며, AI 기반 검색 시스템을 구축해 보세요.
Pinecone 기반 벡터 데이터베이스예요. TsgcAIOpenAIEmbeddings.Database에 연결하면 Pinecone REST API를 통해 모든 청크를 upsert해 줘요. 한 번의 호출로 최근접 이웃을 쿼리할 수 있어요.
TsgcAIDatabaseVectorPinecone
Windows, macOS, Linux, iOS, Android
Enterprise (AI 애드온)
ApiKey + Environment + IndexName을 설정한 다음, TsgcAIOpenAIEmbeddings와 짝지어 벡터를 전송하고 쿼리해 보세요.
uses
sgcAI_DB_Vector, sgcAI_DB_Vector_Pinecone, sgcAI_OpenAI_Embeddings;
var
DBPinecone: TsgcAIDatabaseVectorPinecone;
Embeddings: TsgcAIOpenAIEmbeddings;
begin
DBPinecone := TsgcAIDatabaseVectorPinecone.Create(nil);
DBPinecone.PineconeOptions.ApiKey := 'pc-...';
DBPinecone.PineconeOptions.Environment := 'us-west4-gcp-free';
DBPinecone.PineconeIndexOptions.IndexName := 'sgc-embeddings';
DBPinecone.PineconeIndexOptions.ProjectId := 'abcd1234';
// Combine with the OpenAI embeddings component...
Embeddings := TsgcAIOpenAIEmbeddings.Create(nil);
Embeddings.OpenAIOptions.ApiKey := 'sk-...';
Embeddings.Database := DBPinecone;
// ... and ingest a corpus in a single batch upsert
Embeddings.CreateEmbeddingsFromFile('docs.txt');
// Query the nearest neighbour for an arbitrary text
Memo1.Lines.Text := DBPinecone.QueryData(
Embeddings.GetEmbedding('what is sgcWebSockets?', ''));
end;
3개의 게시된 속성, 4개의 메서드 — 컴포넌트 참조 문서에서 가져왔어요.
게시된 속성: PineconeOptions, PineconeIndexOptions.
게시된 속성: Version.
메서드: BeginAddData, AddData, EndAddData.
메서드: QueryData.
이 컴포넌트가 구현하는 프로토콜의 공식 출처입니다.