Documentation
¶
Overview ¶
Package knowledge composes PostgreSQL retrieval with an Agent knowledge tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DemoEmbedder ¶
type DemoEmbedder struct{}
DemoEmbedder is a deterministic fixture, not a semantic embedding model. Replace it and rebuild document embeddings together for a real application.
type Result ¶
type Result struct {
VectorHits int `json:"vector_hits"`
TextHits int `json:"text_hits"`
Content string `json:"content"`
Citations []rag.Citation `json:"citations"`
}
func RunPostgresRAG ¶
RunPostgresRAG creates only an explicitly owned demonstration schema. The application owns migrations and indexing; retrieval adapters only read. It borrows db, leaves demo rows for inspection, and never calls a model API.
Click to show internal directories.
Click to hide internal directories.