Skip to content

shresthasingh1501/rachel.ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Rachel.ai

logo

Your AI Paralegal Assistant , Revolutionize your legal operations with our open-source AI assistant. Ingest, summarize, question, and analyze thousands of case files with ease.

Document Processing

graph LR
    subgraph "Document Processing"
        A[User Uploads Documents PDF/Word] --> B(LLaMA 3.1 Summarization & Chunking)
        B --> C(BGE-en-small Sentence Embeddings)
        C --> D[ChromaDB Vector Storage]
        D --> E{Organize into Collections Cases}
    end
Loading

Query and Answer

graph LR
    A[User Queries the Database] --> B(BGE-en-small Question Embedding)
    B --> C[ChromaDB Similarity Search]
    C --> D{Retrieve Relevant Chunk}
    D --> E[LLaMA 3.1 Answer Generation with Context]
    E --> F[Precise Answer & Source Reference]
Loading

Setup Process

  1. Install Dependencies

    Install the required packages by running:

    pip install -r requirements.txt
  2. Backend Setup

    The backend is organized into two subfolders: Gradio and Fastapi.

    • Gradio Folder

      The main server logic resides in the Gradio folder. To start the Gradio server, navigate to the Gradio folder and run:

      python3 app.py
    • FastAPI Folder

      After starting the Gradio server, head to the Fastapi folder. Here, you will start the FastAPI server which provides REST API routes to interact with the Gradio interface. Run the following command:

      uvicorn main:app --reload
  3. Frontend Integration

    With both servers running, you can now build a frontend to interact with the HTTP routes provided by the FastAPI server.

Future Work

  • Add a frontend template.
  • Implement the option to perform Q&A on specific documents.

Hosted Demo

You can try out a hosted demo at rachelai.vercel.app.

Contributions

Contributions are welcome! Feel free to submit issues or pull requests.

About

FOSS AI Paralegal Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages