Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Merge pull request #91 from openchatai/feature/query_planner
Browse files Browse the repository at this point in the history
Adding plan and executor chain
  • Loading branch information
codebanesr authored Sep 27, 2023
2 parents 32f2f17 + cdea31a commit 92001cb
Show file tree
Hide file tree
Showing 14 changed files with 1,715 additions and 43 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ git clone [email protected]:openchatai/OpenCopilot.git
OPENAI_API_KEY=YOUR_TOKEN_HERE
```

- gpt-4: Ideal for more complex tasks, but may have slower processing times.
- gpt-3.5-turbo-16k: This model is significantly faster compared to GPT-4.
```env
PLAN_AND_EXECUTE_MODEL=gpt-3.5-turbo-16k
```

- After updating your API key, navigate to the repository folder and run the following command (for macOS or Linux):

```
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ services:
- opencopilot_network
env_file:
- llm-server/.env
ports:
- 8002:8002
depends_on:
- mongodb
- qdrant
Expand Down
8 changes: 7 additions & 1 deletion llm-server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ STORE=QDRANT
LANGCHAIN_TRACING_V2=true
LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
LANGCHAIN_API_KEY="TOKEN_GOES_HERE"
LANGCHAIN_PROJECT="PROJECT_NAME_GOES_HERE"
LANGCHAIN_PROJECT="PROJECT_NAME_GOES_HERE"


# use gpt-4 for more complicated tasks, but it is usually much slower than 3.5-turbo family
# gpt-3.5-turbo-16k - this model is many times faster than gpt-4, gpt-4 is more accurate with self observation
PLAN_AND_EXECUTE_MODEL=gpt-3.5-turbo-16k
VECTOR_DB_THRESHOLD=0.88
4 changes: 2 additions & 2 deletions llm-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ COPY . /app/

EXPOSE 8002

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

0 comments on commit 92001cb

Please sign in to comment.