Hello everyone,
I am currently working on connecting my custom GPT to Weaviate Cloud in order to retrieve contextual content. However, I consistently encounter an HTTP 400 Bad Request error when calling my weaviate collection.
From what I understand, the issue seems related to the plugin request syntax. I have reviewed the available examples, but unfortunately, I am still unable to make it work.
If anyone could kindly share a working syntax example (or point me to relevant documentation), it would be greatly appreciated.
Thank you in advance for your support!
You can do that by providing a generative provider at query time and point it’s baseurl elsewhere you can answer the request with your custom GPT/Generative model
For example:
from weaviate import classes as wvc
collection = client.collections.create(
"Test",
)
collection.data.insert({"title": "Something to test"})
collection.generate.bm25(
query="Some Test",
generative_provider=wvc.generate.GenerativeConfig.openai(
base_url="https://webhook.site/432cd01d-f8e1-418f-81d0-c172d19bc646"
),
grouped_task="Translate to Portuguese",
)
Hello @DudaNogueira , my workflow is this one: OpenAi (CustomGPT)→ Weaviate Cloud, meaning that I am using the standard ChatGPT interface to query weaviate. I understand that, you provide me a way to do the opposite if I am right. Here is an example of an YAML code I have included without success into the actions of my ChatGpt plugin. Please note that the authentication seems to be ok as included into the plugin itself.