|
| 1 | +--- |
| 2 | +description: | |
| 3 | + [Oracle 26ai](https://docs.oracle.com/en/database/oracle/oracle-database/26/index.html) |
| 4 | + is a remote vector database provider for Llama Stack. It allows you to store and query vectors directly |
| 5 | + in an Oracle 26ai database. |
| 6 | + ## Features |
| 7 | + - Easy to use |
| 8 | + - Fully integrated with Llama Stack |
| 9 | + - Supports vector search, keyword search, and hybrid search |
| 10 | + ## Usage |
| 11 | + To use Oracle 26ai in your Llama Stack project, follow these steps: |
| 12 | + 1. Install the necessary dependencies. |
| 13 | + 2. Configure your Llama Stack project to use Oracle 26ai. |
| 14 | + 3. Start storing and querying vectors. |
| 15 | + ## Installation |
| 16 | + You can install the Oracle 26ai client using pip: |
| 17 | + ```bash |
| 18 | + pip install oracledb |
| 19 | + ``` |
| 20 | + ## Configuration |
| 21 | + ```yaml |
| 22 | + vector_io: |
| 23 | + - provider_id: oci |
| 24 | + provider_type: remote::oci |
| 25 | + config: |
| 26 | + conn_str: "${env.OCI26AI_CONNECTION_STRING}" |
| 27 | + user: "${env.OCI26AI_USER}" |
| 28 | + password: "${env.OCI26AI_PASSWORD}" |
| 29 | + tnsnames_loc: "${env.OCI26AI_TNSNAMES_LOC}" |
| 30 | + ewallet_pem_loc: "${env.OCI26AI_EWALLET_PEM_LOC}" |
| 31 | + ewallet_password: "${env.OCI26AI_EWALLET_PWD}" |
| 32 | + vector_datatype: "${env.OCI26AI_VECTOR_DATATYPE:=FLOAT32}" |
| 33 | + persistence: |
| 34 | + namespace: vector_id::oci26ai |
| 35 | + backend: kv_default |
| 36 | + ``` |
| 37 | + ## Documentation |
| 38 | + See the [Oracle 26ai documentation](https://docs.oracle.com/en/database/oracle/oracle-database/26/index.html) |
| 39 | + for more details about Oracle 26ai in general. |
| 40 | +sidebar_label: Remote - Oci |
| 41 | +title: remote::oci |
| 42 | +--- |
| 43 | + |
| 44 | +# remote::oci |
| 45 | + |
| 46 | +## Description |
| 47 | + |
| 48 | + |
| 49 | +[Oracle 26ai](https://docs.oracle.com/en/database/oracle/oracle-database/26/index.html) |
| 50 | +is a remote vector database provider for Llama Stack. It allows you to store and query vectors directly |
| 51 | +in an Oracle 26ai database. |
| 52 | +## Features |
| 53 | +- Easy to use |
| 54 | +- Fully integrated with Llama Stack |
| 55 | +- Supports vector search, keyword search, and hybrid search |
| 56 | +## Usage |
| 57 | +To use Oracle 26ai in your Llama Stack project, follow these steps: |
| 58 | +1. Install the necessary dependencies. |
| 59 | +2. Configure your Llama Stack project to use Oracle 26ai. |
| 60 | +3. Start storing and querying vectors. |
| 61 | +## Installation |
| 62 | +You can install the Oracle 26ai client using pip: |
| 63 | +```bash |
| 64 | +pip install oracledb |
| 65 | +``` |
| 66 | +## Configuration |
| 67 | +```yaml |
| 68 | +vector_io: |
| 69 | +- provider_id: oci |
| 70 | + provider_type: remote::oci |
| 71 | + config: |
| 72 | + conn_str: "${env.OCI26AI_CONNECTION_STRING}" |
| 73 | + user: "${env.OCI26AI_USER}" |
| 74 | + password: "${env.OCI26AI_PASSWORD}" |
| 75 | + tnsnames_loc: "${env.OCI26AI_TNSNAMES_LOC}" |
| 76 | + ewallet_pem_loc: "${env.OCI26AI_EWALLET_PEM_LOC}" |
| 77 | + ewallet_password: "${env.OCI26AI_EWALLET_PWD}" |
| 78 | + vector_datatype: "${env.OCI26AI_VECTOR_DATATYPE:=FLOAT32}" |
| 79 | + persistence: |
| 80 | + namespace: vector_id::oci26ai |
| 81 | + backend: kv_default |
| 82 | +``` |
| 83 | +## Documentation |
| 84 | +See the [Oracle 26ai documentation](https://docs.oracle.com/en/database/oracle/oracle-database/26/index.html) |
| 85 | +for more details about Oracle 26ai in general. |
| 86 | +
|
| 87 | +
|
| 88 | +## Configuration |
| 89 | +
|
| 90 | +| Field | Type | Required | Default | Description | |
| 91 | +|-------|------|----------|---------|-------------| |
| 92 | +| `conn_str` | `str` | No | | Connection string for the given 26ai Service | |
| 93 | +| `user` | `str` | No | | Username name to connect to the service | |
| 94 | +| `password` | `str` | No | | Password to connect to the service | |
| 95 | +| `tnsnames_loc` | `str` | No | | Directory location of the tsnanames.ora file | |
| 96 | +| `ewallet_pem_loc` | `str` | No | | Directory location of the ewallet.pem file | |
| 97 | +| `ewallet_password` | `str` | No | | Password for the ewallet.pem file | |
| 98 | +| `persistence` | `KVStoreReference` | No | | Config for KV store backend | |
| 99 | +| `persistence.namespace` | `str` | No | | Key prefix for KVStore backends | |
| 100 | +| `persistence.backend` | `str` | No | | Name of backend from storage.backends | |
| 101 | +| `consistency_level` | `str` | No | Strong | The consistency level of the OCI26ai server | |
| 102 | +| `vector_datatype` | `str` | No | FLOAT32 | Vector datatype for embeddings | |
| 103 | + |
| 104 | +## Sample Configuration |
| 105 | + |
| 106 | +```yaml |
| 107 | +conn_str: ${env.OCI26AI_CONNECTION_STRING} |
| 108 | +user: ${env.OCI26AI_USER} |
| 109 | +password: ${env.OCI26AI_PASSWORD} |
| 110 | +tnsnames_loc: ${env.OCI26AI_TNSNAMES_LOC} |
| 111 | +ewallet_pem_loc: ${env.OCI26AI_EWALLET_PEM_LOC} |
| 112 | +ewallet_password: ${env.OCI26AI_EWALLET_PWD} |
| 113 | +vector_datatype: ${env.OCI26AI_VECTOR_DATATYPE:=FLOAT32} |
| 114 | +persistence: |
| 115 | + namespace: vector_io::oci26ai |
| 116 | + backend: kv_default |
| 117 | +``` |
0 commit comments