Expand description
CP Query - RAG query engine
Provides semantic search and chat over the knowledge graph.
Per CP-012/CP-020: Supports filtered retrieval and query caching.
Structs§
- Citation
- A citation linking response text to source chunks
- Generation
Result - Result of an LLM generation
- Message
- A chat message
- Ollama
Generator - Ollama-based LLM generator (for desktop/server use)
- Query
Cache - Query cache for storing search results
- Query
Engine - Query engine for semantic search
- Search
Result - Search result with relevance score
- Validation
Result - Result of response validation
Enums§
Traits§
- Intelligence
Engine - Trait for the CP Intelligence Module (IM)
Functions§
- extract_
citations - Extract citations by finding n-gram overlaps between response and context
- validate_
response - Validate a response for potential hallucinations