langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Error: 'latin-1' codec can't encode characters

Open pleelapr opened this issue 1 year ago • 3 comments

Describe the bug I set up a flow where I load the document and store it in Chroma Vectorstore and try to have a chat to ask for information. However, I got this error below.

ValueError: Error: 'latin-1' codec can't encode characters in
position 7-57: ordinal not in range(256)

Browser and Version

  • Browser: Edge
  • Version 112.0.1722.48 (Official build) (64-bit)

To Reproduce Here is my json for the flow I set up. Please change the extension to .json to import it on langflow. Document_vector.txt

Screenshots image

pleelapr avatar Apr 21 '23 23:04 pleelapr

Came here to make the same kind of post.

Little screenshot: Screenshot 2023-04-22 at 13 22 25

I can't see how it's possible to add any Tool functions that would allow me to write a python code to format the html between the html grabber and the text splitter. Tools are red, docs are green, and ne'er shall they meet.

Captain-Bacon avatar Apr 22 '23 12:04 Captain-Bacon

@pleelapr The issue is probably you are copying one API key from one OpenAI API key field to another field. When you copy the values you are copying the dots and not the API key itself. Could you make sure you are pasting the actual API key (maybe paste it somewhere else first to check).

ogabrielluiz avatar Apr 22 '23 14:04 ogabrielluiz

@Captain-Bacon could you create another issue or discussion for us to discuss that? A python function between them is not possible right now, but maybe we can think of something to solve your case.

ogabrielluiz avatar Apr 22 '23 15:04 ogabrielluiz