rag

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package rag is the root of Pando's retrieval module: the knowledge-base store with hybrid (FTS5 + vector) search, the embedding providers, the document converter and the schema migrations they need.

It is a separate Go module (github.com/digiogithub/pando/rag) so that other programs, such as the gintrack hub, can import it without pulling in the rest of Pando's dependency graph. The packages take their database handle, logger and settings explicitly: nothing in this module reads Pando's configuration or global state.

Directories

Path Synopsis
Package convert wraps the conductor-oss/markitdown pure-Go library to turn rich document formats (docx, pdf, xlsx, …) into Markdown.
Package convert wraps the conductor-oss/markitdown pure-Go library to turn rich document formats (docx, pdf, xlsx, …) into Markdown.
Package embeddings provides a unified interface for generating embeddings from multiple providers (OpenAI, Google, Ollama, Anthropic/Voyage).
Package embeddings provides a unified interface for generating embeddings from multiple providers (OpenAI, Google, Ollama, Anthropic/Voyage).
Package kb provides a knowledge base system for storing and searching documents.
Package kb provides a knowledge base system for storing and searching documents.
Package migrate owns the schema of the rag module: the knowledge-base tables (kb_documents, kb_chunks, kb_fts, kb_links) and the session events tables, as goose SQL migrations.
Package migrate owns the schema of the rag module: the knowledge-base tables (kb_documents, kb_chunks, kb_fts, kb_links) and the session events tables, as goose SQL migrations.
Package sqlx holds the transaction helpers the rag packages share: running a transaction again, whole, when it loses against a concurrent writer.
Package sqlx holds the transaction helpers the rag packages share: running a transaction again, whole, when it loses against a concurrent writer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL