Skip to content

dhara519/LawyerBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Start: Currently no frontend. Follow the steps below to locally run the program, and ask questions via the FASTapi UI.

Clone & enter the repo: git clone https://github.com/<your‑github‑user>/LawyerBot.git cd LawyerBot

Create a virtual environment & install deps python -m venv .venv source .venv/bin/activate # Windows ⇒ .venv\Scripts\activate pip install --upgrade pip pip install -r requirements.txt

Add environment variables Create a .env file at the project root: OpenAI OPENAI_API_KEY=

Pinecone PINECONE_API_KEY= PINECONE_INDEX=lawyerbot-index

Path to your combined legal JSON knowledge base COMBINED_DATA_PATH=/absolute/path/to/legal_data.json

Launch the API server uvicorn app.main:app --reload

Open http://127.0.0.1:8000/docs to explore and test the POST /ask endpoint.

Acknowledgements FastAPI OpenAI Python SDK Pinecone SentenceTransformers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors