Closed sihyeong671 closed 3 weeks ago
The recent updates significantly enhance the backend configuration and Docker setup. Key improvements include the integration of the Ollama model for Yorkie Intelligence, offering greater flexibility and reduced costs compared to the previous OpenAI model. Environment variables were updated to support this functionality, and the Docker configuration expanded to include new services, streamlining collaborative editing features and ensuring proper authentication.
Files | Change Summary |
---|---|
backend/.env.development | Updated GitHub credentials; changed YORKIE_INTELLIGENCE to model name "ollama:gemma2:2b" ; added OLLAMA_HOST_URL . |
backend/docker/docker-compose.yml | Added new service yorkie-intelligence using ollama/ollama:latest , exposing port 11434 . |
backend/docker/docker-compose-full.yml | Included new service yorkie-intelligence with similar configuration as in the basic compose file. |
backend/package.json | Added new dependency @langchain/ollama version ^0.0.4 for model handling. |
backend/src/langchain/langchain.module.ts | Updated chatModelFactory to dynamically select between ChatOllama and ChatOpenAI based on config. |
Objective | Addressed | Explanation |
---|---|---|
Model selection by changing model name in env file (255) |
✅ | |
Download Ollama model automatically when running codepair (255) | ❌ | No implementation for automatic downloading is present. |
🐰 In a meadow bright and fair,
The Ollama model fluffs the air.
With Yorkie's help, we leap so high,
No need for fees, we now can fly!
Together we'll code with glee,
A rabbit's dream of freedom, you see! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
What this PR does / why we need it?
This PR adds the Docker image necessary for the Ollama model to the docker-compose file and updates the environment variables required for utilizing the model.
Any background context you want to provide?
The changes in this PR are essential for incorporating the Ollama model into the project. By adding the necessary Docker image and updating the environment variables, the Ollama model can be seamlessly integrated and utilized.
What are the relevant tickets?
Fixes #255
Checklist
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Dependencies