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] Flowise → Zep (0.27.x) integration fails: "cannot unmarshal string into Go struct field …embedding_dimensions of type int" #3804

Open
simfor99 opened this issue Jan 3, 2025 · 3 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@simfor99
Copy link

simfor99 commented Jan 3, 2025

Describe the bug
When Flowise attempts to create or insert into a Document Collection in Zep 0.27.x, it sends the embedding_dimensions field as a string (e.g. "384") instead of an integer. Zep expects an integer and returns a 400 error:

json: cannot unmarshal string into Go struct field CreateDocumentCollectionRequest.embedding_dimensions of type int

This causes Flowise to throw a 500 error on the Flowise side:

APIError: Got an unexpected status code: 400
Response: "cannot unmarshal string into Go struct..."

To Reproduce
Steps to reproduce the behavior:

  1. Set up Flowise (version 2.2.3) in Docker on Windows.

  2. Configure a Document Store or Vector Store node pointing to Zep (version 0.27.x).

  3. Fill in "Embedding Dimensions" in Flowise (e.g. 384 or 768).

  4. Attempt to "Upsert" or "Insert" documents into that Vector Store in Flowise.

  5. Flowise fails with a 500 error. In Flowise logs:

    Error initializing collection: APIError: Got an unexpected status code: 400
    ...
    responseData: 'json: cannot unmarshal string into Go struct field ...embedding_dimensions of type int'

  6. Zep logs show a 400 Bad Request with a message about "cannot unmarshal string for embedding_dimensions".

Expected behavior

  • When Flowise uses "Embedding Dimensions," it should send the field as an integer (e.g. embedding_dimensions: 384) rather than a string ("384").
  • Zep would successfully create or update the collection without a 400 error.

Setup

  • Installation method: Docker
  • Flowise Version: 2.2.3
  • Zep Version: 0.27.2
  • OS: Windows 10 64-bit
  • Browser: Chrome (for Flowise UI)

Additional context

  • Zep 0.27.x expects embedding_dimensions as an integer. If Flowise sends "384" (string), Zep returns a 400 Bad Request.
  • This might require Flowise to ensure it passes an integer field to Zep for embedding_dimensions.
  • Possibly related to other "cannot unmarshal string into Go struct" issues in Flowise for different backends.
    Clipboard_01-03-2025_01
    ID_250103_232814
    ID_250103_232820
    ID_250103_232829
@n0one42
Copy link

n0one42 commented Jan 5, 2025

Same problem for a simple AI Agent using ChatOllama
image
image
Running inside docker on a MacOS m4
Flowise Version: 2.2.3

@HenryHengZJ HenryHengZJ added bug Something isn't working enhancement New feature or request labels Jan 7, 2025
@HenryHengZJ
Copy link
Contributor

I was facing the same issue, but then I update my Ollama and the error went away, can you try that?

@simfor99
Copy link
Author

simfor99 commented Jan 9, 2025

Dear Henry - I will look into it early next week, and report back - thanks for suggesting this approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants