-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
31 lines (26 loc) · 1.05 KB
/
.env.example
File metadata and controls
31 lines (26 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# RushDB Generic RAG API Configuration
# Copy this file to .env and fill in your actual values
# RushDB API Configuration
RUSHDB_API_TOKEN=your_rushdb_api_token_here
# Optional: For self-hosted RushDB instances
RUSHDB_BASE_URL=http://localhost:3000/api/v1
# Embedding Model Configuration (optional)
# Choose from: all-MiniLM-L6-v2, all-mpnet-base-v2, etc.
EMBEDDING_MODEL=all-MiniLM-L6-v2
# Text Processing Configuration (optional)
CHUNK_SIZE=500
MAX_SENTENCES_PER_CHUNK=10
MIN_WORDS_PER_CHUNK=20
SIMILARITY_THRESHOLD=0.7
# API Server Configuration (optional)
API_HOST=0.0.0.0
API_PORT=8000
# Example usage:
# 1. Start the server: uvicorn src.api:app --host 0.0.0.0 --port 8000
# 2. Index records: POST /index with labels, field, and chunk_label
# 3. Search: POST /search with chunk_label and query
# 4. Delete chunks: POST /index/delete with chunk_label
# 1. Copy this file: cp .env.example .env
# 2. Get your RushDB API token from https://app.rushdb.com/
# 3. Replace 'your_rushdb_api_token_here' with your actual token
# 4. Run the application: uv run python run_app.py