-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Add support for hybrid search for pinecone vector database (#…
- Loading branch information
Showing
18 changed files
with
470 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: ChromaDB | ||
--- | ||
|
||
<CodeGroup> | ||
|
||
```python main.py | ||
from embedchain import App | ||
|
||
# load chroma configuration from yaml file | ||
app = App.from_config(config_path="config1.yaml") | ||
``` | ||
|
||
```yaml config1.yaml | ||
vectordb: | ||
provider: chroma | ||
config: | ||
collection_name: 'my-collection' | ||
dir: db | ||
allow_reset: true | ||
``` | ||
```yaml config2.yaml | ||
vectordb: | ||
provider: chroma | ||
config: | ||
collection_name: 'my-collection' | ||
host: localhost | ||
port: 5200 | ||
allow_reset: true | ||
``` | ||
</CodeGroup> | ||
<Snippet file="missing-vector-db-tip.mdx" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: Elasticsearch | ||
--- | ||
|
||
Install related dependencies using the following command: | ||
|
||
```bash | ||
pip install --upgrade 'embedchain[elasticsearch]' | ||
``` | ||
|
||
<Note> | ||
You can configure the Elasticsearch connection by providing either `es_url` or `cloud_id`. If you are using the Elasticsearch Service on Elastic Cloud, you can find the `cloud_id` on the [Elastic Cloud dashboard](https://cloud.elastic.co/deployments). | ||
</Note> | ||
|
||
You can authorize the connection to Elasticsearch by providing either `basic_auth`, `api_key`, or `bearer_auth`. | ||
|
||
<CodeGroup> | ||
|
||
```python main.py | ||
from embedchain import App | ||
|
||
# load elasticsearch configuration from yaml file | ||
app = App.from_config(config_path="config.yaml") | ||
``` | ||
|
||
```yaml config.yaml | ||
vectordb: | ||
provider: elasticsearch | ||
config: | ||
collection_name: 'es-index' | ||
cloud_id: 'deployment-name:xxxx' | ||
basic_auth: | ||
- elastic | ||
- <your_password> | ||
verify_certs: false | ||
``` | ||
</CodeGroup> | ||
<Snippet file="missing-vector-db-tip.mdx" /> |
Oops, something went wrong.