#CacheChat

57 messages · Page 1 of 1 (latest)

snow garnet
#

Hey everyone, just finished a short mid-week hack for a website that allows you to talk to GPT-3.5 about one or more URLs and files (of nearly any format and size!): https://cachechat.pagekite.me/. The best part: everything's built simply with numpy and OpenAI's API, no vector DBs or anything overcomplicated. If you like what you see, please star the repo: https://github.com/andrewhinh/CacheChat

GitHub

Data QA. Contribute to andrewhinh/CacheChat development by creating an account on GitHub.

snow garnet
# urban harness

Thanks for pointing it out. It’s a currently known issue, and will be fixed soon

snow garnet
urban harness
#

Because my output looked generic instead of content-specific to the URL

snow garnet
snow garnet
urban harness
#

The prompt was "what requirements are needed"

snow garnet
#

Let me check it out

#

Well that's an invalid URL:

#

Though yes it should've failed earlier

urban harness
#

Thank you for pointing it out. It's a server issue 😦

snow garnet
#

How'd it go?

urban harness
snow garnet
#

Oh interesting, will look into it, thanks

snow garnet
snow garnet
urban harness
#

Literally ah

snow garnet
#

Turns out that website had a TON of junk, which made the context window overflow for the first question. Those BeautifulSoup web parsers are nice, but they get confused sometimes 🙈

urban harness
snow garnet
urban harness
#

Tried also a jpg file with text and a docx file. But there is another error

snow garnet
#

Ah yes the issue of no text being found, on it

urban harness
#

Headache

snow garnet
# urban harness

Nvm, now it's fixed 😎 Apologies for the confusion 🙈 Had a logic error that wasn't complicated matrix math!

#

Thanks for the tests!

urban harness
#

You could have provided acceptable file formats as a list so people would be oriented about which to upload.

urban harness
fair cobalt
#

Really love this idea but having trouble ingesting documents when running my own instance. Your hosted website had no problem ingesting this PDF and other documents but I couldn't upload after running streamlit

snow garnet
urban harness
#

@snow garnet Does Beautiful Soup parse Scribd documents? I have a Scribd document link but it shows a paywall. Trying Cache Chat for the document it won't access the part I was looking for

snow garnet
urban harness
#

A workaround for Scribd documents should exist. I found a downloader but it already broke.

snow garnet
#

Of course I could implement logging in with Google, etc. to get this to work, but that isn't really the point of the project

#

However, I do feel a bit inspired to build a production-grade version of this tool.

urban harness
fair cobalt
# snow garnet Thanks for trying it out! That’s weird since I have the current main branch code...

Ahhhh my log would only output the "package punkt is already up-to-date!" message and it looks like I get that same output even when file ingestion is successful. I am a quite 'code illiterate PM' so turning on better Steamlit logging proved.....difficult for my small brain. Problem is certainly PEBKAC here though because I re-did the d/l and step-up on a different machine than my primary and it worked just fine

#

Also, again, code illiterate product manager here - I couldn't get "export PYTHONPATH=." to work on my windows system so I replaced it with "set PYTHONPATH=.", but, couldn't figure out how to modify "echo "set PYTHONPATH=.:$PYTHONPATH" >> ~/.bashrc" to work for me since my system couldn't find a ".bashrc" file, so I wouldn't have to do set the path each time I am starting this up - NOT expecting you to solve this for me but just sharing so you know how dumb some users are 😃

snow garnet
snow garnet
fair cobalt
#

So I couldn't just use "setx PYTHONPATH=." but tried to use "setx machine PYTHONPATH=." and "setx mypath PYTHONPATH=.", however, neither seemed to make that path persist once starting up another conda env.

snow garnet
#

Yeah that’s the issue with Windows, it’s never consistent even between other windows machines. I’ll add a link to a website I found for info around this in the README.

#

Comment can be found in step 2 of the setup

fair cobalt
#

Thank you for the help friend

snow garnet
#

Not sure, though it seems to still be able to give an answer

urban harness
#

@snow garnet Did your page got removed?