unclefomotw / llamaindex-try

random attempts in learning llamaindex
2 stars 1 forks source link

src problem #1

Open tsaoshuyu opened 2 months ago

tsaoshuyu commented 2 months ago

Sorry, I encountered an issue while attempting to install the src package using pip. The error message was: "ERROR: Could not build wheels for src, which is required to install pyproject.toml-based projects." Has anyone else encountered this problem?

unclefomotw commented 2 months ago

Thank you for asking. This repo is not meant as a package; it's more like a bunch of independent source codes. (Think them as notebooks, just that they are not notebook files)

To run the code, you do something like this in the project directory

$ PYTHONPATH=$(pwd) python src/rag_1.py

with some libraries installed and some environment variables set. Unfortunately the data files that I read for RAG are not available at this point, but you can use your own datasets and adjust the file extension(s) / directory to read from

I will make an instruction how to run this repo in a few days

unclefomotw commented 2 months ago

Hi @tsaoshuyu I've updated https://github.com/unclefomotw/llamaindex-try/blob/main/README.md with prerequisites and the way to run. Let me know if you have any questions