-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.yaml
More file actions
51 lines (44 loc) · 1.35 KB
/
config.yaml
File metadata and controls
51 lines (44 loc) · 1.35 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
server_name: "code-rag"
server_version: "1.1.0"
# HTTP API configuration (for git hook integration)
http_api_enabled: true
http_api_port: 9333
# Qdrant configuration (Vector Database)
qdrant_url: "localhost:6334" # gRPC port
qdrant_api_key: ""
collection_name: "code_embeddings"
# Embedding configuration
# Options: "local" (LM Studio), "openai"
embedding_type: "local"
# For LM Studio / Local embeddings
embedding_model: "text-embedding-nomic-embed-code"
embedding_base_url: "http://localhost:1234/v1"
embedding_dim: 3584 # nomic-embed-code: 3584, nomic-embed-text: 768, bge-small: 384, openai: 1536
# For OpenAI (uncomment to use)
# embedding_type: "openai"
# embedding_model: "text-embedding-3-small"
# embedding_api_key: "sk-..." # or set OPENAI_API_KEY env var
# embedding_dim: 1536
# Indexing configuration
auto_index_on_startup: false # Set to true to index automatically on startup
code_paths:
- "/path/to/your/project" # Example: /home/user/projects/my-code
file_extensions:
- ".go"
- ".py"
- ".js"
- ".ts"
- ".tsx"
- ".jsx"
- ".tf"
- ".yaml"
- ".yml"
- ".md"
- ".json"
- ".sh"
max_file_size: 1048576 # 1MB max per file
chunk_size: 1000 # Characters per chunk
chunk_overlap: 200 # Overlap between chunks
# Search configuration
top_k: 5 # Default number of results
min_score: 0.15 # Default similarity threshold for high-dim embeddings (0-1)