Kapa.ai widget installation (#2418)

To test:
> cd docs && make html
> click "Ask AI" button on the bottom right-hand corner

Changelogs:
* Installed kapa.ai widget
* fixed sphinx errors in opensearch & elasticsearch documentation
This commit is contained in:
Ronny H 2024-01-17 16:17:11 -08:00 committed by GitHub
parent 4d5038d9fd
commit 96fe7dd5e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 32 additions and 4 deletions

View File

@ -1,4 +1,4 @@
## 0.12.1-dev14
## 0.12.1-dev15
### Enhancements
@ -13,6 +13,7 @@
* **Add "basic" chunking to ingest CLI.** Add options to ingest CLI allowing access to the new "basic" chunking strategy and overlap options.
* **Make Elasticsearch Destination connector arguments optional.** Elasticsearch Destination connector write settings are made optional and will rely on default values when not specified.
* **Normalize Salesforce artifact names.** Introduced file naming pattern present in other connectors to Salesforce connector.
* **Install Kapa AI chatbot.** Added Kapa.ai website widget on the documentation.
### Features
* **MongoDB Source Connector.** New source connector added to all CLI ingest commands to support downloading/partitioning files from MongoDB.

View File

@ -0,0 +1,9 @@
#kapa-widget-container {
z-index: 10000 !important;
position: absolute !important;
}
.mantine-Modal-root {
z-index: 10000;
position: absolute;
}

View File

@ -0,0 +1,11 @@
document.addEventListener("DOMContentLoaded", function() {
var script = document.createElement("script");
script.src = "https://widget.kapa.ai/kapa-widget.bundle.js";
script.setAttribute("data-website-id", "8ae12a97-484a-4704-8127-b6f17ebc6bcf");
script.setAttribute("data-project-name", "Unstructured");
script.setAttribute("data-project-color", "#0CDDF8");
script.setAttribute("data-project-logo", "https://raw.githubusercontent.com/Unstructured-IO/unstructured/main/img/unstructured_logo.png");
script.setAttribute("data-modal-example-questions", "Are OpenAI embeddings supported?,How can I partition a document?,How do I use the library with Docker?,Can I ingest data from Box?");
script.async = true;
document.head.appendChild(script);
});

View File

@ -135,3 +135,8 @@ html_theme_options = {
"sidebar-caption-space-above": "0",
},
}
# kapa.ai integration
html_static_path = ["_static"]
html_js_files = ["custom.js"]
html_css_files = ["custom.css"]

View File

@ -18,6 +18,7 @@ in our community `Slack. <https://short.unstructured.io/pzw05l7>`_
destination_connectors/gcs
destination_connectors/mongodb
destination_connectors/pinecone
destination_connectors/opensearch
destination_connectors/qdrant
destination_connectors/s3
destination_connectors/sql

View File

@ -36,7 +36,7 @@ Vector Search Sample Mapping
To make sure the schema of the index matches the data being written to it, a sample mapping json can be used.
.. literalinclude:: ./data/elasticsearch_elements_mapping.json
.. literalinclude:: ./data/elasticsearch_elements_mappings.json
:language: json
:linenos:
:caption: Object description

View File

@ -36,7 +36,7 @@ Vector Search Sample Mapping
To make sure the schema of the index matches the data being written to it, a sample mapping json can be used.
.. literalinclude:: ./data/opensearch_elements_mapping.json
.. literalinclude:: ./data/opensearch_elements_mappings.json
:language: json
:linenos:
:caption: Object description

View File

@ -26,6 +26,7 @@ in our community `Slack. <https://short.unstructured.io/pzw05l7>`_
source_connectors/mongodb
source_connectors/notion
source_connectors/onedrive
source_connectors/opensearch
source_connectors/outlook
source_connectors/reddit
source_connectors/s3

View File

@ -1 +1 @@
__version__ = "0.12.1-dev14" # pragma: no cover
__version__ = "0.12.1-dev15" # pragma: no cover