You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workflows/README.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,27 @@ This crate handles the configurations of models to be used, and implements vario
6
6
-**OpenAI**: We check that the chosen models are enabled for the user's profile by fetching their models with their API key. We filter out the disabled models.
7
7
-**Ollama**: We provide a sample workflow to measure TPS and then pick models that are above some TPS threshold. While calculating TPS, there is also a timeout so that beyond that timeout the TPS is not even considered and the model becomes invalid.
8
8
9
-
## Environment Variables
9
+
## Installation
10
+
11
+
TODO: !!!
12
+
13
+
## Usage
10
14
11
15
DKN Workflows make use of several environment variables, respecting the providers.
12
16
13
17
-`OPENAI_API_KEY` is used for OpenAI requests
14
18
-`OLLAMA_HOST` is used to connect to Ollama server
15
19
-`OLLAMA_PORT` is used to connect to Ollama server
16
20
-`OLLAMA_AUTO_PULL` indicates whether we should pull missing models automatically or not
21
+
-`SERPER_API_KEY` is optional API key to use **Serper**, for better Workflow executions
22
+
-`JINA_API_KEY` is optional API key to use **Jina**, for better Workflow executions
23
+
24
+
With the environment variables ready, you can simply create a new configuration and call `check_services` to ensure all models are correctly setup:
0 commit comments