Repository navigation
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
76 lines (70 loc) · 1.71 KB
/
Copy pathconfig.example.yaml
File metadata and controls
76 lines (70 loc) · 1.71 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
http:
port: 8080
db:
host: localhost
port: 5432
user: "ragserver"
password: "ragserver"
name: "ragserver"
sslmode: disable
weaviate:
addr: localhost:9035
redis:
addr: localhost:6379
password: ""
db: 0 # use default DB
protocol: 2
index: ragserver-idx
index_prefix: "doc:"
vector_dim: 768 # 768 for text-embedding-004, 384 for all-MiniLM-L6-v2
vector_distance_metric: COSINE # L2, IP, COSINE
relevant_topics:
scope:
- scope 1
- scope 2
- scope 3
net-zero:
- net-zero
- net zero
- net-zero target
- net zero target
# hugot:
# # Supported backends:
# # 1. go
# # 2. ort
# backend: ort
# nnxruntime_path: /usr/lib64/onnxruntime.so
# models_dir: /models
adapter:
filestorage:
dir: ./files
# Supported adapters for extracting text from PDFs:
# 1. pdf (extracts text from PDF locally using code)
# 2. document (uses Gemini document vision)
extract:
name: pdf
model: gemini-2.5-flash # only used if name is document
# Supported models for generating embeddings:
# 1. google-genai
# 2. hugot
embed:
name: google-genai # google-genai or hugot
model: text-embedding-004 # text-embedding-004 or all-MiniLM-L6-v2
# onx_file_path: onnx/model.onnx
# Supported models for storing and retrieving embeddings:
# 1. weaviate
# 2. redis
retrieve:
name: redis
# Supported models for generating text:
# 1. google-genai
# 2. hugot
generative:
name: google-genai
model: gemini-2.5-flash
templates_dir: templates/google-genai/
# name: hugot
# model: onnx-community/gemma-3-1b-it-ONNX-GQA
# templates_dir: templates/hugot/
# onx_file_path: onnx/model.onnx
# external_data_path: onnx/model.onnx_data