-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback and Suggestions to Improve this Project #3
Comments
Just my take on possible tasks:
|
I have not examined the code yet, but refactoring for modularity is almost always a good idea. Keep in mind that Streamlit state management can be tricky when using multiple files.
I think it generally makes sense to bundle the core functionality into a pip package, and then bundle that + the Streamlit app in a Docker image. I can help with that stuff if you'd like.
Yes, please! Maybe start with more embedding models.
Always a good idea. :) Great work! |
Experimenting with a new api in the git clone -b experiment https://github.com/gabrielchua/RAGxplorer.git
cd RAGxplorer
virtualenv venv # create a new virtual env
source venv/bin/activate # activate the virtual env
pip install -r requirements.txt from ragxplorer.ragxplorer import Explorer
# Please ensure "OPENAI_API_KEY" is set as an env variable
client = Explorer(embedding_model="text-embedding-ada-002")
# Or you can use all-MiniLM-L6-v2
# client = Explorer(embedding_model="all-MiniLM-L6-v2")
client.load_document("presentation.pdf")
client.visualise_query("What are the top revenue drivers for Microsoft?") The new structure should quite easily support any Huggingface embedding model too |
Hi @gabrielchua This project is really fun and I wanted to try it in Google Colab now that streamlit is down. But on only importing like this: from ragxplorer import RAGxplorer I get this error:
|
Hi @mohmah9 Ah yes - do give me a few more days to get new streamlit version up again. I had to take it down since I was making major changes to make RAGxplorer a package. An OpenAI key is needed for most of the RAGxplorer features - e.g. use of the embedding models. But good point that the lack of a key should not prevent the use of it/import. Let me fix that. If you already have an OpenAI key, you can set that in Google Colab. |
I got the same issue, have you solved it? |
hello! sorry for the late reply. this should be resolve in |
First and foremost, I want to express my heartfelt thanks to all of you for showing interest in this project. It's incredibly humbling and exciting to see others taking notice of something I built.
As this is my first time writing code that's being used by others, I am keenly aware that there's a lot I can learn and many ways in which the project can be improved. That's where I need your help!
I'm looking for suggestions on how best to carry this project forward and organize the code more effectively. If you have any ideas, best practices, or tips, please don't hesitate to share. Your insights will be invaluable in making this a better and more user-friendly project.
I also ask for your patience and understanding regarding the current state of the code. I'm aware that it may not be up to the professional standards yet, and I'm fully committed to learning and improving. Any constructive feedback or advice in this regard would be greatly appreciated.
Please feel free to post your suggestions, feedback, or any questions you might have as responses to this issue. I'm looking forward to reading your input and engaging in discussions that can lead to the betterment of this project.
The text was updated successfully, but these errors were encountered: