Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ url = "2.5.2"
uuid = { version = "1.10.0", features = ["v4", "fast-rng"] }
async-trait = "0.1.81"
async-stream = "0.3.5"
indexmap = { version = "2.5.0", features = ["serde"] }
http-serde = "2.1.1"

[build-dependencies]
tonic-build = "0.12.1"
Expand Down
10 changes: 9 additions & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ generation:
service:
hostname: localhost
port: 8033
# Generation server used for chat endpoints
# chat_generation:
# provider: openai
# service:
# hostname: localhost
# port: 8080
# Any chunker servers that will be used by any detectors
chunkers:
# Chunker ID/name
Expand All @@ -26,8 +32,10 @@ chunkers:
detectors:
# Detector ID/name to be used in user requests
hap-en:
# Detector type (text_contents, text_generation, text_context_chat, text_context_doc)
type: text_contents
service:
hostname: https://localhost/api/v1/text/contents # Full url / endpoint currently expected
hostname: localhost
port: 8080
# TLS ID/name, optional (detailed in `tls` section)
tls: detector
Expand Down
10 changes: 8 additions & 2 deletions config/test.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ generation:
service:
hostname: localhost
port: 443
# chat_generation:
# provider: openai
# service:
# hostname: localhost
# port: 8080
chunkers:
test_chunker:
type: sentence
Expand All @@ -11,8 +16,9 @@ chunkers:
port: 8085
detectors:
test_detector:
type: text_contents
service:
hostname: https://localhost/api/v1/text/contents
hostname: localhost
port: 8000
chunker_id: test_chunker
default_threshold: 0.5
default_threshold: 0.5
Loading