fixes and refactory

This commit is contained in:
Nicolò Boschi 2024-06-24 09:35:26 +02:00 • committed by Gabriel Luiz Freitas Almeida
commit 8f31291d97
6 changed files with 29 additions and 50 deletions

View file

@ -11,6 +11,18 @@ Used to load embedding models from [Amazon Bedrock](https://aws.amazon.com/bedro
| `endpoint_url` | `str` | URL to set a specific service endpoint other than the default AWS endpoint. | |
| `region_name` | `str` | AWS region to use, e.g., `us-west-2`. Falls back to `AWS_DEFAULT_REGION` environment variable or region specified in ~/.aws/config if not provided. | |
## Astra vectorize
Used to generate server-side embeddings using [DataStax Astra](https://docs.datastax.com/en/astra-db-serverless/databases/embedding-generation.html).
| **Parameter** | **Type** | **Description** | **Default** |
|--------------------|----------|-----------------------------------------------------------------------------------------------------------------------|-------------|
| `provider` | `str` | The embedding provider to use. | |
| `model_name` | `str` | The embedding model to use. | |
| `authentication` | `dict` | Authentication parameters. Use the Astra Portal to add the embedding provider integration to your Astra organization. | |
| `provider_api_key` | `str` | An alternative to the Astra Authentication that let you use directly the API key of the provider. | |
| `model_parameters` | `dict` | Additional model parameters. | |
## Cohere Embeddings
Used to load embedding models from [Cohere](https://cohere.com/).

View file

@ -9,7 +9,7 @@ The `Astra DB` initializes a vector store using Astra DB from Data. It creates A
**Parameters:**
- **Input:** Documents or Data for input.
- **Embedding:** Embedding model Astra DB uses.
- **Embedding or Astra vectorize:** External or server-side model Astra DB uses.
- **Collection Name:** Name of the Astra DB collection.
- **Token:** Authentication token for Astra DB.
- **API Endpoint:** API endpoint for Astra DB.
@ -40,7 +40,7 @@ The `Astra DB` initializes a vector store using Astra DB from Data. It creates A
- **Search Type:** Type of search, such as Similarity or MMR.
- **Input Value:** Value to search for.
- **Embedding:** Embedding model Astra DB uses.
- **Embedding or Astra vectorize:** External or server-side model Astra DB uses.
- **Collection Name:** Name of the Astra DB collection.
- **Token:** Authentication token for Astra DB.
- **API Endpoint:** API endpoint for Astra DB.