Find answers from the community

Updated 8 months ago

Llama-index + Supabase

Hello I am trying to create a clean install of llama-index and SupabaseVectoreStore in Replit but as soon as I install the Supabase Package my code does not work anymore. Is there anybody that could help me out ?
W
D
19 comments
Can you share the error that you are facing. That will help
Hi thx for your reply! after the install "pip install llama-index-vector-stores-supabase"

I run my code without changing anything and in the console appears first the following:

--> poetry add gpt-index
Using version ^0.8.42 for gpt-index

Updating dependencies
Resolving dependencies...

Package operations: 9 installs, 14 updates, 0 removals

β€’ Updating typing-extensions (4.11.0 -> 4.9.0)
β€’ Updating certifi (2024.2.2 -> 2023.11.17)
β€’ Updating idna (3.7 -> 3.6)
β€’ Updating pydantic-core (2.18.1 -> 2.14.5)
β€’ Updating urllib3 (2.2.1 -> 1.26.18)
β€’ Installing jsonpointer (2.4)
β€’ Installing orjson (3.10.0)
β€’ Updating packaging (24.0 -> 23.2)
β€’ Updating pydantic (2.7.0 -> 2.5.2)
β€’ Updating sniffio (1.3.1 -> 1.3.0)
β€’ Updating anyio (4.3.0 -> 4.1.0)
β€’ Updating httpcore (1.0.5 -> 1.0.2)
β€’ Installing jsonpatch (1.33)
β€’ Installing langsmith (0.1.45)
β€’ Updating distro (1.9.0 -> 1.8.0)
β€’ Updating httpx (0.27.0 -> 0.25.2)
β€’ Installing langchain-core (0.1.42)
β€’ Updating tqdm (4.66.2 -> 4.66.1)
β€’ Installing langchain-community (0.0.32)
β€’ Installing langchain-text-splitters (0.0.1)
β€’ Updating openai (1.17.0 -> 1.3.9)
β€’ Installing langchain (0.1.16)
β€’ Installing gpt-index (0.8.42)

Writing lock file
and after that i receive the error:
which tutorial are you following to setup llama-imdex. gpt-index has been moved to llama-index and 0.8.42 is a very old version πŸ˜…
no tutorial i had a feeling that that is kind of wrong xD but its getting installed autamically from replit poetry somehow after i install the supabase package
Lol same link , yeah follow the same tutorial
It should not though, try installing llama-index first
hmm weird i will try to investigate a little bit more maybe replit has a weird setting that is causing this
thx I will let you know how it went
Sure, do try this on colab once!
I would have but I'm away from system at the moment.

Typing this from mobile πŸ˜†
I think I found the issue, you pushed me in the right direction thx a lot! replit has a "feature" called import guessing and it sucks xD it guesses missing dependencies and installs them i had to add a command in the .replit file to deactivate this behavior

Stops the packager from installing packages when running the Repl

disableInstallBeforeRun = true

Stops the packager from guessing and auto-installing packages, but it still runs to install packages when running the Repl

disableGuessImports = true

https://docs.replit.com/programming-ide/installing-packages#import-guessing

https://ask.replit.com/t/python-problem-with-new-template/61456/8
ah maybe change the thread title to "Supabase" not "Superbase"
Lol yeah, damn autocorrect πŸ˜†
Llama-index + Supabase
Add a reply
Sign up and join the conversation on Discord