Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
Knowledge Base CLI Commands
The praisonai-ts CLI provides commands for managing knowledge bases.
Add Knowledge
# Add a document
praisonai-ts knowledge add document.pdf
# Add text content
praisonai-ts knowledge add "Your text content here"
# Add from URL
praisonai-ts knowledge add https://example.com/article
Search Knowledge
# Search the knowledge base
praisonai-ts knowledge search "query"
# Get JSON output
praisonai-ts knowledge search "query" --json
List Knowledge
# List all knowledge entries
praisonai-ts knowledge list
SDK Usage
For programmatic knowledge management:
import { KnowledgeBase } from 'praisonai';
const kb = new KnowledgeBase({
embeddings: 'openai/text-embedding-3-small'
});
// Add content
await kb.add({ content: 'Your document content...' });
// Search
const results = await kb.search('query', { topK: 5 });
For more details, see the Knowledge Base SDK documentation.