#ALP - local, open-source, knowledge-grounded conversational app

29 messages · Page 1 of 1 (latest)

fleet yacht
#

https://github.com/rpast/ALP

ALP is an open-source, knowledge-grounded conversational AI system designed to generate responses grounded in relevant knowledge from external sources. ALP is currently in development, but it can be used locally on users' machines. The app reads chosen PDF file, has unlimited conversational memory and the ability to export conversation and source embeddings in JSON format.

ALP is designed to enhance the accuracy of responses of GPT-3.5 model related to a specific PDF document by using a retrieval augmentation technique. This approach ensures that the most relevant context is always provided to the model with user's question. ALP was created to help me and my friends manage the overwhelming knowledge base of research papers, books and notes, making it easier to access crucial information without having to read through everything. Maybe some of you will find it useful.

Models utilised:

  1. text-embedding-ada-002
  2. gpt-3.5-turbo

Features:

  1. Conversational research assistant: Interact with and get information from loaded PDF file.
  2. Unlimited conversational memory: Retain information from previous conversations for context-aware responses.
  3. Support for long documents: You can upload books. The only thing that limits you is your API limit and OpenAI capacity.
  4. JSON export: Export conversation and source embeddings as JSON format.
  5. Retrieval augmentation: Utilise retrieval augmentation techniques for improved accuracy.
  6. Local deployment: Spin up ALP locally on your machine for privacy and convenience (you just need to have Python installed on your PC).

demo:
https://github.com/rpast/ALP/raw/master/static/alp_demo.gif?raw=true

GitHub

Open-source, knowledge-grounded conversational AI system - GitHub - rpast/ALP: Open-source, knowledge-grounded conversational AI system

echo axle
#

would there be an attempt at internet access and token management?

fleet yacht
fleet yacht
#

ALP got an update. Now it allows to continue conversations that are automatically stored in a local database.

#

ALP - local, open-source, knowledge-grounded conversational app

dusk warren
#

I couldn't make it run in Windows

fleet yacht
# dusk warren I couldn't make it run in Windows

Hey, thanks for the info. I pushed bugfix to the repo. Now when you pull changes or git-clone again you should be able to run the app on Windows. I updated requirements.txt content and fixed dir structure error that prevented the program to spin up the database under static/data/dbs. Let me know if this solves your problem.

dusk warren
#

Thank you, will try, do you have plans on integrating llamaindex?

#

Maybe I could help

#

I'm been looking for a open source personal knowledge base, and maybe this is the app

fleet yacht
#

I thought of adding more connectors with langchain. I havent heard of llamaindex before. How does it differ from langchain?

fleet yacht
#

Still trying to figure out how this fits the langchain ecosystem. From what I see llamaindex offers data connectors and index management. But langchain offers this as well. What am I missing?

dusk warren
#

Oh I didn't know that, maybe I'm wrong

#

I will try your project when I have my PC again

fleet yacht
sleek solstice
#

Given that you still need to supply part of your text to gpt, there is potentially leaking concern if I am working with sensitive/confidential data. Is it fair to say so? @fleet yacht

fleet yacht
sleek solstice
#

I am not concerned about http/HTTPS. Local host is not even on network adapter…it's the small portion of text sending to gpt as part of the prompt would get me in big trouble lol

#

But hey, it's a good project for everything else!

fleet yacht
cobalt slate
fleet yacht
cobalt slate
fleet yacht
#

new major update:

  • new data model: collections<->sessions decouple
  • sentence transformers responsible for embedding