bruehldev / Code-Graph-Backend

Apache License 2.0
0 stars 0 forks source link

Code-Graph-Backend

This is a FastAPI-based API that provides topic modeling and sentence embedding functionalities using BERT models. The API supports NER dataset like few_nerd. You can find the frontend for this project here.

Demo

https://github.com/bruehldev/Code-Graph-Backend/assets/15344369/faf1d89a-28cc-4416-a649-0567688ec25a

Requirements

Usage

  1. Install the required packages by running the following command:

    • Create:
      conda env create --name CodeGraph --file environment.yml
    • Activate:
      conda activate CodeGraph
  2. Start the server using the following command:

    cd src
    uvicorn main:app --reload
  3. Once the server is running, you can access the API at http://localhost:8000.

  4. API Endpoints: To access the API documentation use:

http://localhost:8000/docs

Datasets

Datasets used by us can be found in the datasets folder:

Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please submit a pull request.

License

This project is licensed under the Apache License, Version 2.0.

Folder Structure

The project follows the following folder structure:
project/
├─ src/
│ ├─ main.py
│ ├─ module
│ │ └─ routes.py
│ │ └─ service.py
│ │ └─ schema.py
│ ├─ ...
├─ exported/ 
├─ .gitignore
├─ environment.yml
├─ ...