content
field in the paragraph
document type,
using documentation
as the ranking method. The userQuery()
is replaced with the actual query
passed from LangChain.
Please refer to the pyvespa documentation
for more information.
The URL is the endpoint of the Vespa application.
You can connect to any Vespa endpoint, either a remote service or a local instance using Docker.
However, most Vespa Cloud instances are protected with mTLS.
If this is your case, you can, for instance set up a CloudFlare Worker
that contains the necessary credentials to connect to the instance.
Now you can return the results and continue using them in LangChain.