Giter Site home page Giter Site logo

litchat's Introduction

Setting up the environment: luckily we only have to do the following once!

  1. First things first. It is easier if install Anaconda and VSCode in your computer. Check these videos:
  1. Once you have installed Anaconda, you can create a conda environment and then install all the project related software in it. To create the environment, do conda create --name litchat from your terminal. Here "litchat" is the name of your environment. It can be any name you want.

  2. Next you have to activate the environment and install the packages. To activate do: conda activate litchat.

  3. To install packages, you have to first go to the LitChat directory and do: conda install --yes --file requirements.txt.

  4. Next, you have to add the created conda environment as a jupyter kernal so that your jupyter notebooks can work in this environment. Do the following:

  • pip install ipykernel
  • python -m ipykernel install --user --name litchat --display-name "litchat"
  1. Hang on tight we're almost there. Make sure to install the mistral large langauge model using Ollama. Do: ollama pull mistral. For more details check the Ollama GitHub repo!

How to use the project

There are two approaches:

  1. If you want to get yourself familiarized with what we are doing, you can use the example_notebook.ipynb. Simply open it and play with it.

  2. Run the create_dataset.py script. First, you have to setup the arguments in this file. This script runs the entire pipeline of data extraction for your papers based on the questions/queries.

Something to keep in mind is that, if you're using the same PDF files, again and again, to make the code run faster, you can create vector databases once with create_db = True. From the next time onwards set it to False and provide a vect_dir path. This will tell the code to read from the already vectorized PDFs instead of creating vector databases every time.

litchat's People

Contributors

geemi725 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.