Documentation
¶
Overview ¶
Package rag provides RAG (Retrieval Augmented Generation) commands.
Commands:
- core ai rag ingest: Ingest markdown files into Qdrant
- core ai rag query: Query the vector database
- core ai rag collections: List and manage collections
Index ¶
- func AddRAGSubcommands(parent *cobra.Command)
- func IngestDirectory(ctx context.Context, directory, collectionName string, recreateCollection bool) error
- func IngestFile(ctx context.Context, filePath, collectionName string) (int, error)
- func QueryDocs(ctx context.Context, question, collectionName string, topK int) ([]rag.QueryResult, error)
- func QueryDocsContext(ctx context.Context, question, collectionName string, topK int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRAGSubcommands ¶
AddRAGSubcommands registers the 'rag' command as a subcommand of parent. Called from the ai command package to mount under "core ai rag".
func IngestDirectory ¶
func IngestDirectory(ctx context.Context, directory, collectionName string, recreateCollection bool) error
IngestDirectory is exported for use by other packages (e.g., MCP).
func IngestFile ¶
IngestFile is exported for use by other packages (e.g., MCP).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.