forked from lightspeed-core/lightspeed-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenai-pgvector-run.yaml
More file actions
87 lines (78 loc) · 2.24 KB
/
Copy pathopenai-pgvector-run.yaml
File metadata and controls
87 lines (78 loc) · 2.24 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
77
78
79
80
81
82
83
84
85
86
87
# Example llama-stack configuration for OpenAI inference + PSQL (pgvector) vector index (RAG)
#
# Notes:
# - You will need an OpenAI API key
# - You will need to setup PSQL with pgvector
# - The table schema must follow the expected schema in llama-stack (see rag_guide.md)
#
version: 2
image_name: openai-pgvector-config
apis:
- agents
- inference
- vector_io
- tool_runtime
- safety
models:
- model_id: gpt-test
provider_id: openai
model_type: llm
provider_model_id: gpt-4o-mini
- model_id: sentence-transformers/all-mpnet-base-v2
metadata:
embedding_dimension: 768
model_type: embedding
provider_id: sentence-transformers
provider_model_id: /home/USER/lightspeed-stack/embedding_models/all-mpnet-base-v2
providers:
inference:
- provider_id: sentence-transformers
provider_type: inline::sentence-transformers
config: {}
- provider_id: openai
provider_type: remote::openai
config:
api_key: ${env.OPENAI_API_KEY}
agents:
- provider_id: meta-reference
provider_type: inline::meta-reference
config:
persistence_store:
type: sqlite
db_path: .llama/distributions/ollama/agents_store.db
responses_store:
type: sqlite
db_path: .llama/distributions/ollama/responses_store.db
safety:
- provider_id: llama-guard
provider_type: inline::llama-guard
config:
excluded_categories: []
vector_io:
- provider_id: pgvector-example
provider_type: remote::pgvector
config:
host: localhost
port: 5432
db: pgvector_example # PostgreSQL database (psql -d pgvector_example)
user: lightspeed # PostgreSQL user
password: empty
kvstore:
type: sqlite
db_path: .llama/distributions/pgvector/pgvector_registry.db
tool_runtime:
- provider_id: rag-runtime
provider_type: inline::rag-runtime
config: {}
tool_groups:
- provider_id: rag-runtime
toolgroup_id: builtin::rag
args: null
mcp_endpoint: null
vector_dbs:
- embedding_dimension: 768
embedding_model: sentence-transformers/all-mpnet-base-v2
provider_id: pgvector-example
# A unique ID that becomes the PostgreSQL table name, prefixed with 'vector_store_'.
# e.g., 'rhdocs' will create the table 'vector_store_rhdocs'.
vector_db_id: rhdocs