Skip to content
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

[BUG]The same question yields different answers in the API and the UI #3515

Open
tzengshinfu opened this issue Nov 15, 2024 · 3 comments
Open

Comments

@tzengshinfu
Copy link

tzengshinfu commented Nov 15, 2024

Describe the question
The same question yields different answers in the API and the UI.

To Reproduce
Steps to reproduce the behavior:

The UI
Question (as shown in the blue box below) Answer (as shown in the green box below)
ui

The API
Question (as shown in the blue box below) Answer (as shown in the red box below)
api

Expected behavior
The answers obtained from the API and the UI should be the same.

Setup

  • Installation: docker
  • Flowise Version: 2.1.4
  • OS: Ubuntu 20.04
  • Browser: Chrome 131
@HenryHengZJ
Copy link
Contributor

is this happening every time? how can I replicate this

@tzengshinfu
Copy link
Author

tzengshinfu commented Nov 17, 2024

Hi, HenryHengZJ:
It might be challenging to reproduce, as I'm using Ollama Embeddings (Local Ollama) + ChatOllama (Local Ollama) + Postgres Vector Store + Conversational Retrieval QA Chain.
image_20241117_102543

However, I've observed that the API endpoint used in the UI part is different from the one used when calling the API directly.
image_20241117_095554

The payload parameters are also different.
image_20241117_095605

And in the UI part, only the Streaming Response provides the correct answer.
image_20241117_101750

The answer obtained by directly using the API is incorrect.
image_20241117_102857
image_20241117_103750

@tzengshinfu
Copy link
Author

I followed the suggestion to pass the sessionId, but the results are still different. (The user will only ask questions to Flowise through a third-party webhook, but the API's answers should match those of the UI.)
image_20241121_150809

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants