- Overview
- Features
- Technologies Used
- Installation
- Usage
- Configuration
- Deployment
- Contributing
- License
- Contact
Deploy Safe is a local Retrieval-Augmented Generation (RAG) system designed for efficient Chinese semantic search. This project integrates an Ollama-based Large Language Model (LLM) with Nginx hosting and DuckDNS access. It provides a seamless experience for users looking to leverage AI capabilities in a local environment.
You can find the latest releases and download the necessary files here.
- Local RAG System: Utilize a powerful retrieval system to enhance your AI applications.
- Chinese Semantic Search: Efficiently search through Chinese text with high accuracy.
- Ollama-based LLM: Leverage state-of-the-art language models for your applications.
- Nginx Hosting: Host your application with a reliable web server.
- DuckDNS Access: Easily access your application from anywhere using DuckDNS.
This project incorporates a variety of technologies to deliver its functionality:
- Chatbot: A conversational interface for user interaction.
- ChromaDB: A database for managing vector data.
- DuckDNS: A dynamic DNS service for easy access.
- FastAPI: A modern web framework for building APIs.
- LangChain: A framework for building applications with LLMs.
- Local LLM: Run models locally for privacy and speed.
- Nginx: A high-performance web server.
- Ollama: A tool for managing and deploying LLMs.
- RAG: Combines retrieval and generation for enhanced performance.
- React: A JavaScript library for building user interfaces.
- Vite: A build tool that provides a fast development environment.
To get started with Deploy Safe, follow these steps to install the necessary components.
Ensure you have the following installed:
- Python 3.7 or higher
- Node.js
- Docker (optional, for containerized deployment)
-
Clone the Repository
git clone https://github.com/duribeiro04/deploy-safe.git cd deploy-safe
-
Install Python Dependencies
pip install -r requirements.txt
-
Install Node.js Dependencies
cd frontend npm install
-
Set Up Environment Variables
Create a
.env
file in the root directory and configure your settings. -
Run the Application
For development, use:
uvicorn main:app --reload
For production, use Docker:
docker-compose up -d
After installation, you can start using Deploy Safe.
-
Access the Application
Open your browser and navigate to
http://localhost:8000
to access the interface. -
Interact with the Chatbot
Use the chatbot interface to input queries and receive responses.
-
Explore Semantic Search
Test the semantic search functionality by entering Chinese text.
Customize your application by modifying the configuration files.
Here are some key environment variables you can set:
DATABASE_URL
: URL for your ChromaDB instance.DUCKDNS_TOKEN
: Your DuckDNS token for domain access.NGINX_CONFIG
: Path to your Nginx configuration file.
Ensure that your Nginx configuration is set up to serve the application correctly. An example configuration is provided in the nginx
directory.
For deploying your application, you can choose between local and cloud hosting options.
Follow the installation steps to run the application locally. Use Docker for easier management.
You can deploy Deploy Safe on platforms like AWS, DigitalOcean, or Heroku.
- Create a Server Instance
- Install Dependencies
- Clone the Repository
- Run the Application
For detailed steps, refer to the documentation of your chosen cloud provider.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or suggestions, please reach out:
- GitHub: duribeiro04
- Email: your.email@example.com
For the latest releases, visit here. Download and execute the necessary files to get started with Deploy Safe.