Documentation
¶
Index ¶
- type Fusion
- type LLM
- type Loader
- type RAG
- func (r *RAG) AddDocuments(ctx context.Context, documents ...document.Document) error
- func (r *RAG) AddSources(ctx context.Context, sources ...string) error
- func (r *RAG) Retrieve(ctx context.Context, query string) ([]string, error)
- func (r *RAG) WithChunkOverlap(chunkOverlap uint) *RAG
- func (r *RAG) WithChunkSize(chunkSize uint) *RAG
- func (r *RAG) WithLoader(sourceRegexp *regexp.Regexp, loader Loader) *RAG
- func (r *RAG) WithTopK(topK uint) *RAG
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RAG ¶
type RAG struct {
// contains filtered or unexported fields
}
func (*RAG) AddDocuments ¶
func (*RAG) WithChunkOverlap ¶
func (*RAG) WithChunkSize ¶
Click to show internal directories.
Click to hide internal directories.