MindSQL: A Python Text-to-SQL RAG Library simplifying database interactions. Seamlessly integrates with PostgreSQL, MySQL, SQLite, Snowflake, and BigQuery. Powered by GPT-4 and Llama 2, it enables natural language queries. Supports ChromaDB and Faiss for context-aware responses.
This PR introduces the integration of Ollama support within the mindsql module. The Ollama class has been added, allowing for interaction with Ollama's APIs. This includes the implementation of methods to connect to Ollama's service, execute API requests, and handle responses efficiently.
Related Issue
N/A
Proposed Changes
Added a new Ollama class within the mindsql.llms module.
Implemented methods for:
Connecting to Ollama's API.
Executing API requests and handling responses.
Logging and error handling to ensure smooth integration with Ollama's services.
Added basic unit tests for the Ollama integration to validate connectivity and API request handling.
Description
This PR introduces the integration of Ollama support within the mindsql module. The Ollama class has been added, allowing for interaction with Ollama's APIs. This includes the implementation of methods to connect to Ollama's service, execute API requests, and handle responses efficiently.
Related Issue
N/A
Proposed Changes