Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientAPI ¶
type ClientAPI struct { RequestBuilder requestbuilder.Builder Config ClientConfig LLMClient openai.OpenAI Encoder encoder.Encode }
func NewVectorStoreClient ¶
func NewVectorStoreClient(builder requestbuilder.Builder, indexURL, pineconeAPIKey, openAIAPIKey string) *ClientAPI
func (*ClientAPI) ConvertToVectorStoreItem ¶
func (p *ClientAPI) ConvertToVectorStoreItem(r model. CostAndUsageOutputType) []*model. VectorStoreItem
func (*ClientAPI) Upsert ¶
func (p *ClientAPI) Upsert(ctx context.Context, data []PineconeStruct) (resp model.UpsertResponse, err error)
type ClientConfig ¶
type ClientConfig struct { BaseURL string HTTPClient *http.Client // contains filtered or unexported fields }
func DefaultConfig ¶
func DefaultConfig(indexUrl, apiKey string) ClientConfig
type PineconeDB ¶
type PineconeDB interface { ConvertToVectorStoreItem(r model.CostAndUsageOutputType) []*model. VectorStoreItem Upsert(ctx context.Context, data []PineconeStruct) error }
type PineconeStruct ¶
type UpsertVectorsRequest ¶
type UpsertVectorsRequest struct {
Message []PineconeStruct `json:"vectors"`
}
Click to show internal directories.
Click to hide internal directories.