Issue with SemanticSimilarityExampleSelector.from_examples #17785
Replies: 1 comment 3 replies
-
🤖 Hey @NikhilKosare, great to see you diving into another challenge! Hope you're doing well. Based on the error message you provided, it seems like the URL for the vector store is not correctly formatted. The error message The Here is an example of how to call the method with a URL: example_selector = SemanticSimilarityExampleSelector.from_examples(
examples,
embeddings,
vector_store,
k=5,
input_keys=["input"],
vectorstore_cls_kwargs={"url": "https://your-vector-store-url"}
) In this example, replace Please ensure that the URL for your vector store is correctly formatted and includes the scheme (http or https). If you continue to experience issues, please provide more details about your vector store and how you are initializing it. Sources
|
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
ServiceRequestError: Invalid URL "/indexes('langchain-index')?api-version=2023-10-01-Preview": No scheme supplied. Perhaps you meant https:///indexes('langchain-index')?api-version=2023-10-01-Preview?
System Info
langchain 0.1.8
platform - windows
python version - 3.11.5
Beta Was this translation helpful? Give feedback.
All reactions