Find answers from the community

Updated 3 months ago

Dispatch

What can i do against this? Why does it happen?
L
S
3 comments
Maybe a bug in flag reranker. Or your version of llama-index-core is too old
I updated the llama-index-core version and now it seems to work. I get a different error now however regarding langfuse, can you maybe help me with it?

Plain Text
ERROR:langfuse:1 validation error for CreateSpanBody
name
  str type expected (type=type_error.str)
Traceback (most recent call last):
  File "/Users/saltukkezer/Library/Caches/pypoetry/virtualenvs/app-WTiBYyDQ-py3.11/lib/python3.11/site-packages/langfuse/client.py", line 2151, in span
    event = CreateSpanBody(**new_body)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/saltukkezer/Library/Caches/pypoetry/virtualenvs/app-WTiBYyDQ-py3.11/lib/python3.11/site-packages/pydantic/v1/main.py", line 341, in __init__
    raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for CreateSpanBody
name
  str type expected (type=type_error.str)

This happens when i use the following embedding model:

Plain Text
Settings.embed_model = HuggingFaceEmbedding(
   model_name="BAAI/bge-m3"
)
Hmm seems like an issue with langfuse. Not sure tbh
Add a reply
Sign up and join the conversation on Discord