Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/run-examples-with-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
coherence-image:
- ghcr.io/oracle/coherence-ce
coherenceVersion:
- 22.06.12
- 25.03.1
runs-on: ${{ matrix.os }}
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
coherence-image:
- ghcr.io/oracle/coherence-ce
coherenceVersion:
- 22.06.12
- 25.03.1
runs-on: ${{ matrix.os }}
steps:
Expand Down
10 changes: 10 additions & 0 deletions examples/vector_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,16 @@ async def do_run() -> None:
# Create a new session to the Coherence server using the default host and
# port i.e. localhost:1408
session: Session = await Session.create()
# Check if the example cmn be run against the server
if (session._protocol_version == 1) and (
(session._proxy_version > "24.09.2") or (session._proxy_version > "15.0.0")
):
# Server supports vector search - continue on
pass
else:
# Server does not support vector search - exit out
return

# Create a NamedMap called movies with key of str and value of dict
movie_db: NamedMap[str, dict] = await session.get_map("movies")
try:
Expand Down