DocsCore ConceptsKnowledge Base

Knowledge Base

The knowledge base gives your agent accurate, up-to-date information to reference when answering questions.

Adding Sources

# Add local files
claw kb add ./docs/faq.md

# Add a website
claw kb add https://docs.example.com

# Add a Notion workspace
claw kb add notion://workspace-id

Supported Formats

  • Markdown files (.md)
  • PDF documents (.pdf)
  • Plain text (.txt)
  • HTML pages
  • Notion pages
  • Google Docs (via integration)

How It Works

When you add a source, Clawployees:

  1. Parses and chunks the content
  2. Creates embeddings for semantic search
  3. Indexes the content for retrieval

When your agent receives a question, it searches the knowledge base for relevant context and includes it in its response.

Keeping Content Fresh

Set up automatic refresh intervals:

knowledge: {
  sources: ['./docs'],
  refreshInterval: '6h', // re-index every 6 hours
  webhookRefresh: true,  // re-index on webhook trigger
}

Content Priority

You can prioritize certain sources over others:

knowledge: {
  sources: [
    { path: './docs/policies.md', priority: 'high' },
    { path: './docs/general.md', priority: 'normal' },
  ],
}