FastAPI/Typer application that uses LlamaCpp and GPT4All to answer questions about your data. Everything runs locally.
Note that this is only a toy repository to experiment and play with all these new big LLMs.
Erudito: Easy API/CLI to ask questions about your documentation
Home Page: https://adriacabeza.github.io/erudito/
That would be amazing :)
Documentation that is published on the github pages website is out-of-sync with the actual state of the docs/ folder.
For example the command for running the fastapi server on the website is wrong and it's corrected in the main branch of this repository.
Running python -m src.ingest
hit an error on ingest.py
:
39: embeddings = np.empty((len(chunks), llama.n_embd()))
AttributeError: 'Llama' object has no attribute 'n_embd'
I'm not sure why, because this shows the definition of n_embd
. However, updating to llama-cpp-python==0.2.11
in requirements.lock resolved the problem.
Excellent project, thanks for making this for us folks who struggle to put these things together.
When I try to get it to read my files, I get error - PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead.
I have been trying to test this but the application is unable to load the model throwing out the following error. I am using quantised lora model from gpt4all repo for testing on a wsl distribution on windows 11 with a .txt data in data folder and the model in the model folder. I am using the following command
python -m src.ingest data/ models/gpt4all/gpt4all-lora-quantized.bin
It throws out following error
Model Path= models/gpt4all/gpt4all-lora-quantized.bin
llama.cpp: loading model from models/gpt4all/gpt4all-lora-quantized.bin
error loading model: llama.cpp: tensor '�~5��x�{�d��HuV' should not be 131072-dimensional
llama_init_from_file: failed to load model
Any suggestions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.