Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 92001cb

Browse files
authored
Merge pull request #91 from openchatai/feature/query_planner
Adding plan and executor chain
2 parents 32f2f17 + cdea31a commit 92001cb

File tree

14 files changed

+1715
-43
lines changed

14 files changed

+1715
-43
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ git clone [email protected]:openchatai/OpenCopilot.git
4545
OPENAI_API_KEY=YOUR_TOKEN_HERE
4646
```
4747

48+
- gpt-4: Ideal for more complex tasks, but may have slower processing times.
49+
- gpt-3.5-turbo-16k: This model is significantly faster compared to GPT-4.
50+
```env
51+
PLAN_AND_EXECUTE_MODEL=gpt-3.5-turbo-16k
52+
```
53+
4854
- After updating your API key, navigate to the repository folder and run the following command (for macOS or Linux):
4955

5056
```

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ services:
3030
- opencopilot_network
3131
env_file:
3232
- llm-server/.env
33+
ports:
34+
- 8002:8002
3335
depends_on:
3436
- mongodb
3537
- qdrant

llm-server/.env.example

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ STORE=QDRANT
1212
LANGCHAIN_TRACING_V2=true
1313
LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
1414
LANGCHAIN_API_KEY="TOKEN_GOES_HERE"
15-
LANGCHAIN_PROJECT="PROJECT_NAME_GOES_HERE"
15+
LANGCHAIN_PROJECT="PROJECT_NAME_GOES_HERE"
16+
17+
18+
# use gpt-4 for more complicated tasks, but it is usually much slower than 3.5-turbo family
19+
# gpt-3.5-turbo-16k - this model is many times faster than gpt-4, gpt-4 is more accurate with self observation
20+
PLAN_AND_EXECUTE_MODEL=gpt-3.5-turbo-16k
21+
VECTOR_DB_THRESHOLD=0.88

llm-server/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ COPY . /app/
1515

1616
EXPOSE 8002
1717

18-
# Run app.py when the container launches
19-
CMD ["python", "app.py"]
18+
# -u To prevent log accumulation, execute app.py with unbuffered output as soon as the container starts up.
19+
CMD ["python", "-u" ,"app.py"]

0 commit comments

Comments
 (0)