1. Documentation
Xentree Docs
  • Documentation
    • Introduction
    • Quickstart
    • Authentication
    • Conversations
    • Knowledge Base
    • Xentree Live
    • Organizations and Teams
    • Xentree English
    • Errors and Limits
  • API Reference
    • Authentication
      • Register a new user
      • Log in and get an access token
      • Refresh an access token
      • Log out the current user
      • Get the current authenticated user
      • Update the current authenticated user
    • Conversations
      • List available AI providers
      • Generate an AI response
      • List conversations for the current user
      • Create a conversation
      • Get messages for a conversation
      • Search indexed user content
    • Knowledge Base
      • Search the knowledge base
    • Xentree Live
      • Get remaining Xentree Live quota
      • Start a live session
      • Update an active live session heartbeat
      • End a live session
      • Update the user nickname used in Xentree Live
      • List live transcripts for the current user
      • Save live session transcripts
      • Get a single live transcript
    • Organizations
      • List organizations for the current user
      • Create an organization
      • Get organization details
      • Update organization details
      • Delete an organization
      • List organization members
      • Add a member to an organization
    • Integrations
      • List active integrations for the current user
      • Start the Google Calendar OAuth flow
    • Xentree English
      • List XEL modules with user progress
      • Get XEL module details
      • Submit a learning task response
      • Run AI evaluation for speaking or writing
      • Get the XEL dashboard overview
  • Schemas
    • Error
    • TokenResponse
    • UserProfile
    • ChatRequest
    • ChatResponse
    • ConversationCreateRequest
    • ConversationResponse
    • KnowledgeSearchRequest
    • LiveStartSessionRequest
    • LiveSessionResponse
    • LiveQuotaResponse
    • TranscriptTurn
    • SaveLiveTranscriptsRequest
    • OrganizationCreateRequest
    • OrganizationResponse
    • MemberResponse
    • XELModuleSummary
    • XELTaskSubmissionRequest
  1. Documentation

Knowledge Base

Xentree supports knowledge-aware retrieval so responses can stay grounded in relevant context.

Use cases#

retrieve supporting context for an AI answer
isolate knowledge by conversation or user scope
manage private and shared knowledge items
build more reliable AI workflows

Main endpoints#

Search knowledge#

POST /api/knowledge/search
This endpoint lets you search for relevant knowledge using a query, conversation context, and optional retrieval filters.

Create knowledge item#

POST /api/knowledge/items

Get knowledge item#

GET /api/knowledge/items/{knowledge_id}

Update knowledge item#

PUT /api/knowledge/items/{knowledge_id}

Example search request#

{
  "query": "meeting notes about the launch plan",
  "conversation_id": "conv_123",
  "filters": {
    "tags": ["launch", "planning"]
  },
  "options": {
    "limit": 5
  }
}

Design principles#

The knowledge layer is designed around:
privacy-aware access control
conversation isolation
relevance scoring
smart retrieval for grounded generation

When to use it#

Use Knowledge Base APIs when your application needs better recall, context-aware search, or document-backed responses.
Modified at 2026-04-17 06:31:58
Previous
Conversations
Next
Xentree Live
Built with