def _get_query_embedding(self, query: str) -> List[float]:
# Send the POST request, data will be as per your embedding server standard
response = requests.post(url, json=data)
embeddings = response.json()
return embeddings
No sentence-transformers model found with name sentence-transformers/hub. Creating a new one with mean pooling.
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like sentence-transformers/hub is not the path to a directory containing a file named config.json. Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.