-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
3,113 additions
and
729 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,5 @@ share/python-wheels/ | |
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
**/__pycache__ | ||
**/__pycache__ | ||
env/ |
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,19 @@ | ||
ObjectBox Python ChangeLog | ||
========================== | ||
|
||
4.0.0 (2024-05-16) | ||
------------------ | ||
|
||
* ObjectBox now supports vector search ("vector database") to enable efficient similarity searches. | ||
This is particularly useful for AI/ML/RAG applications, e.g. image, audio, or text similarity. | ||
Other use cases include sematic search or recommendation engines. | ||
See https://docs.objectbox.io/ann-vector-search for details. | ||
* Queries: support for Property-based conditions and logic combinations | ||
* Convenient "Store" API deprecates ObjectBox and Builder API | ||
* New examples added, illustrating an VectorSearch and AI/RAG application | ||
* Dependency flatbuffers: Updated to 24.3.50 | ||
* Adjusting the version number to match the core version (4.0); we will be aligning on major versions from now on. | ||
|
||
Older Versions | ||
-------------- | ||
Please check https://github.com/objectbox/objectbox-python/releases for details. |
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,75 @@ | ||
# ObjectBox-Python Examples | ||
|
||
The following examples are available from this repository. | ||
|
||
## Application Example: Tasks | ||
|
||
This is our classic Tasks application using a CLI. | ||
|
||
``` | ||
cd example | ||
python -m tasks | ||
Welcome to the ObjectBox tasks-list app example. Type help or ? for a list of commands. | ||
> new buy oat | ||
> new buy yeast | ||
> new bake bread | ||
> ls | ||
ID Created Finished Text | ||
1 Mon Apr 22 11:02:27 2024 buy oat | ||
2 Mon Apr 22 11:02:30 2024 buy yeast | ||
3 Mon Apr 22 11:02:34 2024 bake bread | ||
> done 1 | ||
> done 2 | ||
> ls | ||
> ls | ||
ID Created Finished Text | ||
1 Mon Apr 22 11:02:27 2024 Mon Apr 22 11:03:02 2024 buy oat | ||
2 Mon Apr 22 11:02:30 2024 Mon Apr 22 11:03:18 2024 buy yeast | ||
3 Mon Apr 22 11:02:34 2024 bake bread | ||
> exit | ||
``` | ||
|
||
## Vector-Search Example: Cities | ||
|
||
This example application starts with a pre-defined set of capital cities and their geo coordinates. | ||
It allows to search for nearest neighbors of a city (`city_neighbors`) or by coordinates (`neighbors`) as well as adding more locations (`add`). | ||
|
||
``` | ||
python -m vectorsearch-cities | ||
Welcome to the ObjectBox vectorsearch-cities example. Type help or ? for a list of commands. | ||
> ls | ||
ID Name Latitude Longitude | ||
1 Abuja 9.08 7.40 | ||
2 Accra 5.60 -0.19 | ||
[..] | ||
212 Yerevan 40.19 44.52 | ||
213 Zagreb 45.81 15.98 | ||
> ls Ber | ||
ID Name Latitude Longitude | ||
28 Berlin 52.52 13.40 | ||
29 Bern 46.95 7.45 | ||
> city_neighbors Berlin | ||
ID Name Latitude Longitude Score | ||
147 Prague 50.08 14.44 7.04 | ||
49 Copenhagen 55.68 12.57 10.66 | ||
200 Vienna 48.21 16.37 27.41 | ||
34 Bratislava 48.15 17.11 32.82 | ||
89 Ljubljana 46.06 14.51 42.98 | ||
> neighbors 6,52.52,13.405 | ||
ID Name Latitude Longitude Score | ||
28 Berlin 52.52 13.40 0.00 | ||
147 Prague 50.08 14.44 7.04 | ||
49 Copenhagen 55.68 12.57 10.66 | ||
200 Vienna 48.21 16.37 27.41 | ||
34 Bratislava 48.15 17.11 32.82 | ||
89 Ljubljana 46.06 14.51 42.98 | ||
> add Area51, 37.23, -115.81 | ||
> city_neighbors Area51 | ||
ID Name Latitude Longitude Score | ||
107 Mexico City 19.43 -99.13 594.86 | ||
27 Belmopan 17.25 -88.76 1130.92 | ||
64 Guatemala City 14.63 -90.51 1150.79 | ||
164 San Salvador 13.69 -89.22 1261.12 | ||
67 Havana 23.11 -82.37 1317.73 | ||
``` |
Oops, something went wrong.