mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-21 02:23:31 +02:00
Add connector creation docs
This commit is contained in:
@ -68,17 +68,16 @@ if __name__ == "__main__":
|
|||||||
[here](https://github.com/danswer-ai/danswer/blob/main/backend/danswer/connectors/factory.py#L33)
|
[here](https://github.com/danswer-ai/danswer/blob/main/backend/danswer/connectors/factory.py#L33)
|
||||||
|
|
||||||
#### Frontend Changes
|
#### Frontend Changes
|
||||||
- Create the new connector directory and admin page under `danswer/web/src/app/admin/connectors/`
|
- Add the new Connector definition to the `SOURCE_METADATA_MAP` [here](https://github.com/danswer-ai/danswer/blob/main/web/src/lib/sources.ts#L59).
|
||||||
- Create the new icon, type, source, and filter changes
|
- Add the definition for the new Form to the `connectorConfigs` object [here](https://github.com/danswer-ai/danswer/blob/main/web/src/lib/connectors/connectors.ts#L79).
|
||||||
(refer to existing [PR](https://github.com/danswer-ai/danswer/pull/139))
|
|
||||||
|
|
||||||
#### Docs Changes
|
#### Docs Changes
|
||||||
Create the new connector page (with guiding images!) with how to get the connector credentials and how to set up the
|
Create the new connector page (with guiding images!) with how to get the connector credentials and how to set up the
|
||||||
connector in Danswer. Then create a Pull Request in https://github.com/danswer-ai/danswer-docs
|
connector in Danswer. Then create a Pull Request in https://github.com/danswer-ai/danswer-docs.
|
||||||
|
|
||||||
|
|
||||||
### Before opening PR
|
### Before opening PR
|
||||||
1. Be sure to fully test changes end to end with setting up the connector and updating the index with new docs from the
|
1. Be sure to fully test changes end to end with setting up the connector and updating the index with new docs from the
|
||||||
new connector.
|
new connector. To make it easier to review, please attach a video showing the successful creation of the connector via the UI (starting from the `Add Connector` page).
|
||||||
2. Be sure to run the linting/formatting, refer to the formatting and linting section in
|
2. Add a folder + tests under `backend/tests/daily/connectors` director. For an example, checkout the [test for Confluence](https://github.com/danswer-ai/danswer/blob/main/backend/tests/daily/connectors/confluence/test_confluence_basic.py). In the PR description, include a guide on how to setup the new source to pass the test. Before merging, we will re-create the environment and make sure the test(s) pass.
|
||||||
|
3. Be sure to run the linting/formatting, refer to the formatting and linting section in
|
||||||
[CONTRIBUTING.md](https://github.com/danswer-ai/danswer/blob/main/CONTRIBUTING.md#formatting-and-linting)
|
[CONTRIBUTING.md](https://github.com/danswer-ai/danswer/blob/main/CONTRIBUTING.md#formatting-and-linting)
|
||||||
|
Reference in New Issue
Block a user