Module: Phronomy::KnowledgeSource
- Defined in:
- lib/phronomy/knowledge_source.rb,
lib/phronomy/knowledge_source/base.rb,
lib/phronomy/knowledge_source/rag_knowledge.rb,
lib/phronomy/knowledge_source/entity_knowledge.rb,
lib/phronomy/knowledge_source/static_knowledge.rb
Overview
KnowledgeSource provides the interface for supplying context region 3 (Knowledge) to the Context::Assembler.
Each implementation returns an array of knowledge chunks via #fetch(query:). Each chunk is a Hash with :content (String) and :type (Symbol) keys. The Assembler wraps each chunk in an XML context tag before injecting it.
Defined Under Namespace
Classes: Base, EntityKnowledge, RAGKnowledge, StaticKnowledge