Skip to content

Compétition de data et d'IA durant laquelle nous avons développé un chat-bot sur la base d'un RAG

License

Notifications You must be signed in to change notification settings

Eleazar-ZOUBGA/data_battle_2025

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Patent Maestro

Usage

Prerequisites

Environment variables configuration

Replace <...>s below with the appropriate values.

Create a .env.prod file in the services/server directory and add the following environment variables:

DATABASE_URL=postgresql://<username>:<password>@database:5432/<database_name>
OLLAMA_API_URL=http://ollama:11434
SECRET_KEY=<a_random_string>

Create a .env.prod file in the services/ui directory and add the following environment variables:

API_URL=http://server:5000
NEXT_PUBLIC_API_EXTERNAL_URL=http://localhost:5000

Create a .env file in the root directory of the project and add the following environment variables:

DATABASE_NAME=<database_name(e.g. patent_maestro)>   # The same as in the DATABASE_URL in the server .env file
DATABASE_USER=<username>                             # The same as in the DATABASE_URL in the server .env file
DATABASE_PASSWORD=<password>                         # The same as in the DATABASE_URL in the server .env file
API_URL=http://server:5000                           # The same as in the UI .env file
NEXT_PUBLIC_API_EXTERNAL_URL=http://localhost:5000   # The same as in the UI .env file

Note: The previous instructions are for development purposes. For production, after the Data Battle, the environment variables should be set in a more secure way.

Running the application

To start the application, run the following command in the root directory of the project:

docker compose up

To stop the application, run the following command in the root directory of the project:

docker compose down

Accessing the application

The application can be accessed at the following URLs:

Project Structure

docs/                     # Project presentation slides
    Patent_Maestro.pdf
    Patent_Maestro.pptx
services/
    server/               # Backend server
        data/
            raw/          # Raw data
            cleaned/      # Cleaned data
        Dockerfile
        ...               # Other backend server files
    ui/                   # Frontend client
        Dockerfile
        ...               # Other frontend client files
docker-compose.yml        # Docker compose file

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributors

About

Compétition de data et d'IA durant laquelle nous avons développé un chat-bot sur la base d'un RAG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 57.6%
  • Python 31.8%
  • Jupyter Notebook 7.4%
  • Makefile 1.2%
  • Dockerfile 1.1%
  • JavaScript 0.5%
  • CSS 0.4%