-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release 0.5.1 This also adds an integration test which actually hits the API and experimental support for unprivileged container images * Add debug statement * Add debug statement * Bump Qdrant to 1.5.1 * Try to fix tests * Add comment and remove duplicated test
- Loading branch information
1 parent
bc06c7b
commit 52515f6
Showing
14 changed files
with
269 additions
and
129 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Changelog | ||
|
||
## [qdrant-0.5.0](https://github.com/qdrant/qdrant-helm/tree/qdrant-0.5.0) (2023-09-07) | ||
## [qdrant-0.5.1](https://github.com/qdrant/qdrant-helm/tree/qdrant-0.5.1) (2023-09-12) | ||
|
||
- Update to Qdrant 1.5.0 [\#72](https://github.com/qdrant/qdrant-helm/issues/72) | ||
- Use new Qdrant readiness and liveness endpoints [\#71](https://github.com/qdrant/qdrant-helm/issues/71) | ||
- Update Qdrant to v1.5.1 | ||
- Ensure that the qdrant-init-file-path is on a writable, ephemeral volume [\#74](https://github.com/qdrant/qdrant-helm/issues/74) |
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 was deleted.
Oops, something went wrong.
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,77 @@ | ||
{{- $root := . }} | ||
{{- $namespace := .Release.Namespace }} | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: "{{ include "qdrant.fullname" . }}-test-db-interaction" | ||
labels: | ||
{{- include "qdrant.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/hook": test | ||
spec: | ||
containers: | ||
- name: test-script | ||
image: registry.suse.com/bci/python:3.11 | ||
args: ['bash', '/app/entrypoint.sh'] | ||
volumeMounts: | ||
- mountPath: /app | ||
name: test-script | ||
volumes: | ||
- name: test-script | ||
configMap: | ||
name: "{{ include "qdrant.fullname" . }}-test-db-interaction" | ||
restartPolicy: Never | ||
serviceAccountName: {{ include "qdrant.fullname" . }} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: "{{ include "qdrant.fullname" . }}-test-db-interaction" | ||
labels: | ||
{{- include "qdrant.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/hook": test | ||
data: | ||
entrypoint.sh: | | ||
#!/bin/bash | ||
set -xe | ||
zypper install -y python311-dbm | ||
pip3 install qdrant-client=={{ .Chart.AppVersion }} | ||
python3 /app/test.py | ||
test.py: | | ||
from qdrant_client import QdrantClient | ||
from qdrant_client.http.models import Distance, VectorParams | ||
from qdrant_client.http.models import PointStruct | ||
{{- range .Values.service.ports }} | ||
{{- if eq .name "http" }} | ||
print("Connecting to {{ include "qdrant.fullname" $root }}.{{ $namespace }}:{{ .port }}") | ||
client = QdrantClient("{{ include "qdrant.fullname" $root }}.{{ $namespace }}", port={{ .port }}) | ||
{{- end }} | ||
{{- end }} | ||
client.recreate_collection( | ||
collection_name="test_collection", | ||
vectors_config=VectorParams(size=4, distance=Distance.DOT), | ||
) | ||
operation_info = client.upsert( | ||
collection_name="test_collection", | ||
wait=True, | ||
points=[ | ||
PointStruct(id=1, vector=[0.05, 0.61, 0.76, 0.74], payload={"city": "Berlin"}), | ||
PointStruct(id=2, vector=[0.19, 0.81, 0.75, 0.11], payload={"city": "London"}), | ||
PointStruct(id=3, vector=[0.36, 0.55, 0.47, 0.94], payload={"city": "Moscow"}), | ||
PointStruct(id=4, vector=[0.18, 0.01, 0.85, 0.80], payload={"city": "New York"}), | ||
PointStruct(id=5, vector=[0.24, 0.18, 0.22, 0.44], payload={"city": "Beijing"}), | ||
PointStruct(id=6, vector=[0.35, 0.08, 0.11, 0.44], payload={"city": "Mumbai"}), | ||
] | ||
) | ||
print(operation_info) | ||
search_result = client.search( | ||
collection_name="test_collection", | ||
query_vector=[0.2, 0.1, 0.9, 0.7], | ||
limit=3 | ||
) | ||
print(search_result) |
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
Oops, something went wrong.