Skip to content

Fix dependency naming and Query Embedding Example#2583

Open
dvlasako wants to merge 4 commits intooracle-devrel:mainfrom
dvlasako:main
Open

Fix dependency naming and Query Embedding Example#2583
dvlasako wants to merge 4 commits intooracle-devrel:mainfrom
dvlasako:main

Conversation

@dvlasako
Copy link
Collaborator

Update: Prerequisites Section

  • python-oracledb package does not exist
  • corrected package name to oracledb

Update: Create Embedding for Query Example (now matches OCI SDK 2.167.1)

  • Removed invalid import and usage of non-existent CohereEmbedTextRequest class (caused ImportError); embeddings use generic EmbedTextDetails/EmbedTextResult.
  • Updated EmbedTextDetails constructor: Replaced nested embed_text_request with direct parameters inputs=[question] and input_type="SEARCH_QUERY" (actual params: inputs, serving_mode, compartment_id, etc.).
  • Simplified response handling: Access vector directly via resp.data.embeddings[0] (as EmbedTextResult object); eliminated unnecessary oci.util.to_dict(resp.data) conversion.

# Update: Prerequisites Section
- `python-oracledb` package does not exist
- corrected package name to `oracledb`

# Update: Create Embedding for Query Example (now matches OCI SDK 2.167.1 (latest))
- Removed invalid import and usage of non-existent CohereEmbedTextRequest class (caused ImportError); embeddings use generic EmbedTextDetails/EmbedTextResult.
- Updated EmbedTextDetails constructor: Replaced nested embed_text_request with direct parameters inputs=[question] and input_type="SEARCH_QUERY" (actual params: inputs, serving_mode, compartment_id, etc.).
- Simplified response handling: Access vector directly via resp.data.embeddings[0] (as EmbedTextResult object); eliminated unnecessary oci.util.to_dict(resp.data) conversion.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 19, 2026
…Gateway docs

1. Podman Volume Mount (Issue 1): Updated the podman run command to include a note on using absolute Windows paths for ~/.oci mounting, as Unix-style paths don't work reliably in Podman on Windows (requires shared/mounted directories in the Podman VM).

2. Gunicorn on Windows (Issue 2): Added a note under the production setup clarifying that Gunicorn is Linux-only and recommending alternatives like Uvicorn with PM2 or NSSM for Windows production scaling.

3. Base URL for Podman on Windows (Issue 3): Changed the recommended Base URL in n8n config from host.docker.internal (unreliable in Podman) to host.containers.internal, with fallbacks to localhost or explicit IP via --add-host for better cross-platform support.
…Gateway docs

1. Podman Volume Mount (Issue 1): Updated the `podman run` command to include a note on using absolute Windows paths for `~/.oci` mounting, as Unix-style paths don't work reliably in Podman on Windows (requires shared/mounted directories in the Podman VM).

2. Gunicorn on Windows (Issue 2): Added a note under the production setup clarifying that Gunicorn is Linux-only and recommending alternatives like Uvicorn with PM2 or NSSM for Windows production scaling.

3. Base URL for Podman on Windows (Issue 3): Changed the recommended Base URL in n8n config from `host.docker.internal` (unreliable in Podman) to `host.containers.internal`, with fallbacks to `localhost` or explicit IP via `--add-host` for better cross-platform support.
@dvlasako dvlasako requested a review from brnil6 February 23, 2026 09:08
@dvlasako dvlasako added the documentation Improvements or additions to documentation label Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant