Table of Contents
Zotero is a popular tool among researchers and students for organizing documents, PDFs, and links. However, managing a large collection can be daunting, making it hard to find specific information. Our project introduces an AI assistant designed to tackle this issue by scanning your Zotero library to answer queries and direct you to pertinent resources, streamlining research and reviving forgotten topics efficiently.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- virtualenv
virtualenv venv -p python3 source venv/bin/activate
- Get a free Zotero API Key at https://www.zotero.org/settings/keys/new
- Clone the repo
git clone https://github.com/vankhoa21991/zoterollm.git
- Install packages
cd zoterollm pip install -r requirements.txt pip install -e .
- Enter your API in
.env
HF_AUTH_TOKEN = 'ENTER YOUR HUGGINGFACE API TOKEN'; ZOTERO_USER_ID = 'ENTER YOUR ZOTERO USER ID'; ZOTERO_KEY = 'ENTER YOUR ZOTERO KEY'
- Clone the Huggingface model
git clone https://huggingface.co/meta-llama/Llama-2-7b-chat-hf
Create index of your local library, and save it to a csv file
python -m zoterollm.pyzotero --zoteropath /path/to/your/zotero/library
Create vector database of your local library
python -m zoterollm.create_vector_store --csvfile path/to/your/csvfile
Run the web app
python -m zoterollm.app
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Van Khoa - @twitter - vankhoa21991@gmail.com
Project Link: https://github.com/vankhoa21991/zoterollm