Documentation Index
Fetch the complete documentation index at: https://docs.tryfltr.com/llms.txt
Use this file to discover all available pages before exploring further.
Build Your First RAG Application
This tutorial walks you through building a complete Retrieval Augmented Generation (RAG) application using FLTR for semantic search and OpenAI for generation.What You’ll Build
A document Q&A system that:- Indexes a knowledge base using FLTR
- Retrieves relevant context for user questions
- Generates answers using GPT-4 with the retrieved context
Prerequisites
- FLTR API key (get one here)
- OpenAI API key (get one here)
- Python 3.8+ or Node.js 16+
Architecture Overview
- User asks a question
- FLTR finds relevant chunks from your documents
- Chunks are passed as context to GPT-4
- GPT-4 generates an answer based on the context
Implementation
Running the Example
Expected Output
Advanced Features
Enable Reranking
For better result quality, enable Cohere reranking:Batch Queries
Process multiple questions efficiently:Add Citations
Include source references in generated answers:Production Considerations
Error Handling
Monitoring
Track performance and costs:Next Steps
API Reference
Explore advanced query options
Zapier Integration
Build no-code RAG workflows
OAuth Setup
Integrate with Claude Desktop
Webhooks
Get notified of document updates
Troubleshooting
No Results Returned
If queries return zero results:- Wait 5-10 seconds after uploading for indexing to complete
- Try broader search terms
- Check that documents were uploaded successfully
- Verify the dataset ID is correct
Low Relevance Scores
To improve search quality:- Enable reranking with
"rerank": true - Add descriptive metadata to documents
- Break large documents into smaller chunks
- Use more specific queries
Rate Limit Issues
If you hit rate limits:- Implement exponential backoff and retry logic
- Cache frequent queries
- Use batch queries for multiple questions
- Upgrade to OAuth for 15,000 req/hour
Resources
- FLTR Python SDK (coming soon)
- FLTR JavaScript SDK (coming soon)
- OpenAI Cookbook
- RAG Best Practices