Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not clear how to plug in the parameters for a connector #210

Open
heaversm opened this issue Jun 13, 2024 · 2 comments
Open

Not clear how to plug in the parameters for a connector #210

heaversm opened this issue Jun 13, 2024 · 2 comments

Comments

@heaversm
Copy link

heaversm commented Jun 13, 2024

What improvement(s) are you suggesting?

I am trying to decipher the process to use the connector tool within coral toolkit (or add my own tool).

I successfully built a custom connection to my google drive folder, and I can use the cohere python library to converse with my docs via the command line / curl etc. But I cannot figure out how to do this within the cohere toolkit.

From the connector retriever source code, the instructions are:

"""
Plug in your Connector configuration here. For example:

Url: http://example_connector.com/search
Auth: Bearer token for the connector

More details: https://docs.cohere.com/docs/connectors
"""


class ConnectorRetriever(BaseTool):

    def __init__(self, url: str, auth: str):
        self.url = url
        self.auth = auth

But these instructions don't make sense - putting the Url and Auth inside this comment would do nothing. And I've tried hard coding these values into self.url = [my_url] and self.auth = [my_auth] but the toolkit throws a connection error using the connector retriever. This happens despite the fact that I can do a curl request using that exact same endpoint and values.

image

The connector retriever itself in the tools menu has no corresponding field to specify what you're connecting to, but it seems like you could set things up so someone could just plug in a cohere compatible API endpoint within the UI here and facilitate the connection.

I feel like more information or a better process is needed in order to use the connector retriever, or implement custom tools, and deploy an extrapolated version of the quick start connectors to a public endpoint. I've attempted to surface these questions on Discord but things seem similarly opaque. Maybe you could do a tutorial video?

Additional information

No response

@BeatrixCohere
Copy link
Collaborator

Hi, Thank you for the feedback, I will look at improving the documentation around connectors. For now what type of auth are you using with the connector?

@heaversm
Copy link
Author

Thanks @BeatrixCohere - I am using Service to Service Authentication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants