Git Product home page Git Product logo

barristerbuddy's Introduction

Barrister Buddy Project Documentation

This documentation provides comprehensive information on cloning, setting up, and running the Barrister Buddy project on your local machine. It also serves as a quick guide to the structure and functionalities of the project.

Getting Started

Prerequisites

The following software should be installed on your system:

  • Node.js (LTS version)
  • npm (Node Package Manager)

Cloning the Repository

Execute the following steps to clone the repository:

# Open terminal
# Navigate to the desired directory
git clone https://github.com/Nashons/BarristerBuddy.git

Project Setup

The following steps will guide you through setting up the project:

# Open terminal
# Navigate to the project's root directory
npm install

# Create .env.local file in the project's root directory and setup environment variables
echo 'PINECONE_API_KEY="..."\nPINECONE_INDEX_NAME="..."\nOPENAI_API_KEY="..."' >> .env.local

Running the Project

To run the project locally, follow these steps:

# Make sure you're in the project's root directory
npm run dev

This command starts the Next.js development server and the project can be accessed at http://localhost:3000.

Project Structure

The project comprises the following main files and directories:

  • pages/index.tsx: This is the application's homepage containing the main UI components like the PDF dropzone and chat interface.
  • api/addData/route.ts: Defines the /api/addData route for uploading and processing of PDF files for training the chatbot.
  • api/chat/route.ts: Defines the /api/chat route to handle user prompts and generate responses from the trained model.
  • src/app/globals.css: The application's global CSS file for styling.
  • src/app/layout.tsx: Defines the layout component of the application including the metadata.
  • src/app/api/: This directory contains all the API route files.
  • src/app/components/: This directory contains reusable UI components used in the application.
  • src/app/utils/: This directory contains utility functions and helper files.

For more detailed explanations of each file's functionality, please refer to the source code and inline comments.

barristerbuddy's People

Contributors

doyeninnit avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.