-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhttp_adapter_config.yaml
More file actions
36 lines (36 loc) · 984 Bytes
/
Copy pathhttp_adapter_config.yaml
File metadata and controls
36 lines (36 loc) · 984 Bytes
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
# Example config for a pipeline exposed over HTTP. Header values that start
# with 'env:' are read from the environment at request time and never stored.
project: my-rag
adapter:
type: http
http:
name: my-rag-api
timeout_seconds: 30
max_attempts: 3
retrieve:
request:
url: https://rag.internal.example.com/search
method: POST
headers:
Authorization: env:RAGPROOF_TARGET_API_KEY
body:
query: "{question}"
top_k: "{k}"
chunks_path: results
chunk_fields:
id: chunk_id
text: content
score: relevance
answer:
request:
url: https://rag.internal.example.com/ask
method: POST
headers:
Authorization: env:RAGPROOF_TARGET_API_KEY
body:
question: "{question}"
answer_path: answer
citations_path: citations[*].chunk_id
chunks_path: context
dataset: dataset.jsonl
store: .ragproof/ragproof.db