-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathllm_chain.yaml
81 lines (78 loc) · 2.92 KB
/
llm_chain.yaml
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
llm_chain:
platform:
# anthropic:
# api_key: '%env(ANTHROPIC_API_KEY)%'
# azure:
# gpt_deployment:
# base_url: '%env(AZURE_GPT_BASE_URL)%'
# deployment: '%env(AZURE_GPT_DEPLOYMENT)%'
# api_key: '%env(AZURE_GPT_API_KEY)%'
# api_version: '%env(AZURE_GPT_VERSION)%'
# embeddings_deployment:
# base_url: '%env(AZURE_EMBEDDINGS_BASE_URL)%'
# deployment: '%env(AZURE_EMBEDDINGS_DEPLOYMENT)%'
# api_key: '%env(AZURE_EMBEDDINGS_API_KEY)%'
# api_version: '%env(AZURE_EMBEDDINGS_VERSION)%'
openai:
api_key: '%env(OPENAI_API_KEY)%'
chain:
blog:
# platform: 'llm_chain.platform.anthropic'
model:
name: 'GPT'
version: 'gpt-4o-mini'
tools:
- 'PhpLlm\LlmChain\Chain\Toolbox\Tool\SimilaritySearch'
- service: 'clock'
name: 'clock'
description: 'Provides the current date and time.'
method: 'now'
youtube:
model:
name: 'GPT'
version: 'gpt-4o-mini'
tools: false
wikipedia:
model:
name: 'GPT'
version: 'gpt-4o-mini'
options:
temperature: 0.5
system_prompt: 'Please answer the users question based on Wikipedia and provide a link to the article.'
tools:
- 'PhpLlm\LlmChain\Chain\Toolbox\Tool\Wikipedia'
audio:
model:
name: 'GPT'
version: 'gpt-4o-mini'
system_prompt: 'You are a friendly chatbot that likes to have a conversation with users and asks them some questions.'
tools:
# Chain in chain 🤯
- service: 'llm_chain.chain.blog'
name: 'symfony_blog'
description: 'Can answer questions based on the Symfony blog.'
is_chain: true
store:
chroma_db:
symfonycon:
collection: 'symfony_blog'
# web_summer_camp:
# host: '%env(CHROMADB_HOST)%'
# collection: 'wsc_program'
embedder:
default:
# platform: 'llm_chain.platform.anthropic'
# store: 'llm_chain.store.chroma_db.symfonycon'
model:
name: 'Embeddings'
version: 'text-embedding-ada-002'
services:
_defaults:
autowire: true
autoconfigure: true
# PhpLlm\LlmChain\Chain\Toolbox\Tool\Clock: ~
# PhpLlm\LlmChain\Chain\Toolbox\Tool\OpenMeteo: ~
# PhpLlm\LlmChain\Chain\Toolbox\Tool\SerpApi:
# $apiKey: '%env(SERP_API_KEY)%'
PhpLlm\LlmChain\Chain\Toolbox\Tool\Wikipedia: ~
PhpLlm\LlmChain\Chain\Toolbox\Tool\SimilaritySearch: ~