Skip to content

Welcome to Giraffe AI Lite! An accessible Generative AI powered personal knowledge base system.

License

Notifications You must be signed in to change notification settings

jzh135/Griaffe-AI-Lite

Repository files navigation

🦒 Griaffe AI Lite 🚀

Welcome to Giraffe AI Lite! An AI powered personal knowledge base system.

The heart of Giraffe AI Lite lies in its retrieval-augmented generation approach. By combining retrieval-based techniques with generative models, it achieves accurate and flexible information synthesis. This project is specifically tailored for individuals who have no experience in AI application development and lack access to high-performance computing resources.

Here are its key features:

  1. Accessible Learning with LLM: Giraffe AI utilizes the OpenAI API for vector embeddings and LLM to reduce the need for high-performance computers, rather than using locally sourced LLM. This approach is cost-effective, as the expense of API calls (at $1.5 per million tokens for GPT-3.5 Turbo) is significantly lower than building a PC with a dedicated GPU.
  2. Lightweight and User-Friendly: Giraffe AI Lite is designed with a strong emphasis on simplicity and user-friendliness. By intentionally reducing unnecessary functionality—such as compatibility with other embeddings or LLMs—and eliminating a graphical user interface, the project streamlines the user experience. As a result, users won’t need to install an excessive number of libraries, making environmental setup and maintenance significantly easier.
  3. Self-Query Techniques: Giraffe AI Lite empowers the retriever with advanced capabilities. Not only does it utilize the user-input query for semantic similarity comparison with stored document contents, but it also extracts filters from the user query based on the metadata of stored documents. These filters are then executed to enhance the precision and flexibility of information retrieval.

Explore Giraffe AI Lite and unlock the power of AI without the complexity! 🚀

🛠️ Installation Guide

1. Build environment

1.1 Download and install Anaconda from https://www.anaconda.com/

1.2 Create and activate python (version 3.10.0) virtual environment

conda create -n GiraffeAI python=3.10.0
conda activate GiraffeAI

2. Setup Giraffe AI

2.1 Install all required libraries from requirements.txt

pip install -r requirements.txt

2.2 OpenAI API

Create a .txt file in the current directory with your OpenAI API Key, rename the file to openAI_API.txt
OpenAI API price is listed on https://openai.com/pricing

3. Launch Giraffe AI

Run Giraffe_AI_run.py in your virtual environment

python Giraffe_AI_run.py

📓 Development Log

Version 1.0 (3/27/2024)

  • Databse: Chroma
  • Record management: document upload, removal and replacement
  • Source document format: .pdf/.txt
  • Embeddings: OpenAI text-embedding-3-small
  • LLM: OpenAI GPT3.5-turbo

About

Welcome to Giraffe AI Lite! An accessible Generative AI powered personal knowledge base system.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages