Overview
context-window provides extensive configuration options to customize AI models, vector storage, text chunking, and retrieval behavior.Configuration Interface
Required Options
namespace
Unique identifier for the context window. Also used as the Pinecone namespace.Rules:
- Must be unique across your application
- Use descriptive names (e.g.,
"user-documentation", not"docs1") - Alphanumeric characters, hyphens, and underscores only
data
File path(s) or directory path(s) to ingest.Supported formats:
.txt, .md, .pdfBehavior:- Directories are processed recursively
- Hidden files (starting with
.) are ignored - Non-supported files are skipped
Optional Configurations
ai
AI provider and model configurationDefault:
vectorStore
Vector store provider and configurationDefault:
chunk
Text chunking configurationDefault:
- Small (500-800)
- Medium (1000-1500)
- Large (1500-2000)
Best for:
- FAQ documents
- Simple Q&A
- Definition lookups
- Quick facts
- ✅ Precise matches
- ✅ Less noise
- ❌ May miss context
- ❌ More chunks = more cost
limits
Query and retrieval limitsDefault: