-
Notifications
You must be signed in to change notification settings - Fork 299
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
get_qa_with_reference is always None where as get_retrieved_documents works fine. #3408
Comments
@snagrecha Can you ensure you are passing in a non-null dataframe? |
Hi, Heres the code being used. (It is a single query to the RAG pipeline which fetches a response. The query is generated via user input on console.)
Following is the output:
|
Thank you for the reply @snagrecha. It's tough to understand the topology of your traces from the code snippet you sent. It looks like you're using LangChain from your screenshot. Can you point me toward the particular chain you are using? |
Hi @axiomofjoy sorry for the rather abstract snippet. Here is the chain and a snapshot of the Traces to better understand the flow.
Error traceback:
Below is the screenshot of arize-phoenix traces without running eval: |
Hey @snagrecha, thank you for your patience and thanks for the detailed scripts. As background, the way If the error persists after upgrading, can you send a script I can run for the chain? Your example above does not include definitions for the Thanks for your help. |
Hi @axiomofjoy, sorry for the late response. The arize-phoenix version that I am using is 4.4.1 as suggested by you. The error still persists. However I think I have been able to narrow down the source.
This query seems to be the culprit which results in empty df being returned causing all the problem. |
Hey @snagrecha. This query for root spans coming back empty suggests your project either has no traces or is missing the root span for each trace. I am guessing your project is not empty if If you send a snippet to reproduce the issue, I'm happy to debug the issue. |
Hi, I think I have the same issue, both the queries_df and get_retrieved_documents(px.active_session()) is empty/None, is it possible that is because the input and output has some attribute instead of a direct value? If so is it possible to solve it? Also I noticed that for langchain tutorial it only has RetrievalQA, is it possible there is a tutorial about LLMChain? Thanks, and here is my example input/output image. |
Hi, @axiomofjoy. I'm Dosu, and I'm helping the Arize Phoenix team manage their backlog. I'm marking this issue as stale. Issue Summary:
Next Steps:
Thank you for your understanding and contribution! |
Always get No spans found.
File "C:\anaconda3\Lib\site-packages\phoenix\evals\classify.py", line 354, in run_evals
total_records = len(dataframe)
^^^^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()
Anyone else facing the same issue?
Originally posted by @snagrecha in #2647 (comment)
The text was updated successfully, but these errors were encountered: