Documentation ¶
Index ¶
- Constants
- type App
- func (app *App) GenerateFromParts(ctx context.Context, prompts []string) (string, error)
- func (app *App) GenerateFromSinglePrompt(ctx context.Context, prompt string) (string, error)
- func (app *App) IndexFile(ctx context.Context, fileName string, contentReader *strings.Reader) error
- func (app *App) IndexSummaryForFile(ctx context.Context, fileName string, contentReader *strings.Reader) error
- func (app *App) Search(ctx context.Context, query string, numDocuments int, ...) (model.SearchResults, error)
- type SearchStrategy
Constants ¶
View Source
const ( DefaultCollectionName string = "langchain" MetadataCollectionFieldName string = "collection_name" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GenerateFromParts ¶
func (*App) GenerateFromSinglePrompt ¶
func (*App) IndexSummaryForFile ¶
type SearchStrategy ¶
type SearchStrategy int
const ( // this strategy drives to search a top N of documents across <numberOfNamespacesToSearchIn> collections and selects a top N documents based on the score SearchStrategyTopFirst SearchStrategy = iota // this strategy drives to seach a top N of documents across <numberOfNamespacesToSearchIn> collections and selects top N/<numberOfNamespacesToSearchIn> from each SearchStrategyWide )
Click to show internal directories.
Click to hide internal directories.