For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
99
Sponsor

Company Knowledge

Indexes internal documents into a vector store and answers questions over them, with PII redaction.

Live preview

Flue

Output will stream here when you run the agent.

Summary

The Company Knowledge Agent answers questions over your internal documents — issues, wiki pages, notes. It indexes them into a vector store, searches the corpus first, and redacts personal data (emails, phone numbers, SSNs, card numbers, API keys) from responses. Reach for it to build an internal "ask the company" assistant.

Install

$ pnpm dlx shadcn@latest add @agentcn/flue/company-knowledge

Composition

agents/
└── company-knowledge.ts     # Corpus-first, PII-safe agent
workflows/
└── index-knowledge.ts       # Scheduled re-index workflow
tools/
├── search-knowledge.ts      # Search the corpus (redacted)
└── index-document.ts        # Add a document to the corpus
lib/
├── vector-store.ts          # libSQL vector store + embeddings
└── pii.ts                   # PII redaction helper

Customization

  • Connect sources. Feed index-knowledge from Linear, Notion, or your wiki on a cron for fresh data.
  • Swap the vector store. Replace lib/vector-store.ts with pgvector/Neon, Pinecone, or Qdrant.
  • Tune redaction. Edit the patterns in lib/pii.ts for your data.
  • Swap the model. Change the model field on the agent.