Cookbook / Knowledge
Retrieve and transform governed knowledge
Use KnowledgeRetrieval to search a corpus and KnowledgeTransform to build a new structured corpus.Local recipes
- retrieval_example.py searches a temporary FileSystemKnowledge corpus.
- transform_example.py converts retrieved documents into structured summaries.
- Both recipes create their own fixtures and require no external API key.
GitHub
Retrieval source
Search a local FileSystemKnowledge corpus.
GitHubTransform source
Transform retrieved documents into structured summaries.
Runbash
python cookbook/knowledge/retrieval_example.py
python cookbook/knowledge/transform_example.py