Documentation
¶
Index ¶
- func DefaultNativeRetriever(opts ...Option) (core.Retriever, error)
- func DefaultRetriever(opts ...Option) (core.Retriever, error)
- func NewRetriever(vectorStore core.VectorStore, embedder embedding.Provider, llm chat.Client, ...) core.Retriever
- func NewRetrieverWithOptions(vectorStore core.VectorStore, embedder embedding.Provider, llm chat.Client, ...) core.Retriever
- type Option
- func WithDocStore(s store.DocStore) Option
- func WithEmbedder(e embedding.Provider) Option
- func WithLLM(l chat.Client) Option
- func WithLogger(l logging.Logger) Option
- func WithTopK(k int) Option
- func WithTracer(t observability.Tracer) Option
- func WithVectorStore(s core.VectorStore) Option
- func WithWorkDir(dir string) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultNativeRetriever ¶ added in v1.1.3
DefaultNativeRetriever creates an out-of-the-box Native Retriever.
func DefaultRetriever ¶ added in v1.1.3
DefaultRetriever is an alias for DefaultNativeRetriever.
func NewRetriever ¶
Types ¶
type Option ¶ added in v1.1.3
type Option func(*Options)
func WithDocStore ¶ added in v1.1.3
func WithEmbedder ¶ added in v1.1.3
func WithLogger ¶ added in v1.1.3
func WithTracer ¶ added in v1.1.3
func WithTracer(t observability.Tracer) Option
func WithVectorStore ¶ added in v1.1.3
func WithVectorStore(s core.VectorStore) Option
func WithWorkDir ¶ added in v1.1.3
Click to show internal directories.
Click to hide internal directories.