mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-18 10:54:29 -04:00
if match := _special_token_regex(disallowed_special).search(text): TypeError: expected string or buffer #114
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MarkEdmondson1234 on GitHub (Feb 2, 2024).
The documented way of using retrievers doesn't seem to work, I found a way around that works with ChromaDB but not with LanceDB ( https://github.com/langchain-ai/langchain/issues/15371 )
I think this is how it should work as documented:
but that errors as it returns None for the context:
If I do this, it does work with ChromaDB:
But not with LanceDB:
I have confirmed the vectorstores work to extract data in the same code:
But the retrievers seems to have an issue?
@MarkEdmondson1234 commented on GitHub (Feb 2, 2024):
I see its for the log stream, so perhaps its only a case that LanceDB returns a numpy object in its metadata that Langserve can not parse to json? I have a call to test the similarity_search that logs this :
@MarkEdmondson1234 commented on GitHub (Feb 2, 2024):
The fix for the LanceDB issue not handling arrays is here:
https://github.com/langchain-ai/langchain/issues/15371