Skip to content

Akshat19Ak/LLM-APP-DEMO

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

RAG Chatbot

This is a simple rag chatbot.

Warning:

Please do not expose sensitive information such as passwords, API keys, or any other confidential data in your code.

Always use environment variables or secure vaults to manage sensitive information.

Exposing such data can lead to security vulnerabilities and unauthorized access to your systems.

Prerequisites

  • Basic knowledge of Git & Github
  • FastAPI
  • Python
  • Pipenv
  • Langchain
  • Langsmith

Imp Git commands

  • Initialize a empty git repo:

    git init
  • Create and checkout to a new branch:

    git checkout -b feature/your-feature-name
  • Stage changes:

    git add .
  • Create and checkout to a new branch:

    git commit -m "Your message"
  • Push to branch:

    git push origin feature/your-feature-name
  • Add the upstream repository (the original repository you forked from) as a remote. Replace URL_OF_UPSTREAM_REPO with the actual URL of the upstream repository:

    git remote add upstream URL_OF_UPSTREAM_REPO
  • Fetch the changes from the upstream repository:

    git fetch upstream
  • Merge the changes into your local branch. If you are on the main branch (or master, depending on the repository), you can do:

    git checkout main  # or master
    git merge upstream/main  # or upstream/master
  • Push the updated branch to your forked repository on GitHub:

    git push origin main  # or master

Imp Pipenv commands

  • Install pipenv package:

    pip install pipenv
  • Initialize a virtual environment:

    pipenv install
  • Start the pipenv terminal:

    pipenv shell
  • Install required in your venv:

    pipenv install -r requirements.txt

Imp FastAPI commands

  • Run FastAPI app with Uvicorn

    uvicorn main:app --reload
  • Run FastAPI app without Uvicorn

    fastapi dev main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published