-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vector ingestion example updates (#29)
* upgrade vector ingestion example - upgrade to Flink 1.19.1 and Python 3.11 - simplify config by using single json object with all settings - add local model inference with embedded sentence transformer - make model inference configurable (remote vs. local) - adapt readme * fix readme and links * remove conflicting numpy from python-libs folder before zipping
- Loading branch information
Showing
15 changed files
with
172 additions
and
170 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "embedding_mode": "remote", "model_server": "https://<your_ngrok_model_server_hostname_here>/local/embedding", "mongodb_uri": "mongodb://demousr:demopwd@<your_ngrok_tcp_mongodb_hostname_and_port_here>/?retryWrites=true&w=majority", "mysql_host": "<your_ngrok_tcp_mysql_hostname_here>", "mysql_password": "123456", "mysql_port": "<your_ngrok_tcp_mysql_port_here>", "mysql_user": "root" } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
53 changes: 6 additions & 47 deletions
53
pyflink-vector-embeddings/pyflink-app/decodable-resources.yaml
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,64 +1,23 @@ | ||
--- | ||
kind: secret | ||
metadata: | ||
name: vector_ingest_mysql_host | ||
spec_version: v1 | ||
spec: | ||
value_file: ./.secrets/mysql_host | ||
--- | ||
kind: secret | ||
metadata: | ||
name: vector_ingest_mysql_port | ||
spec_version: v1 | ||
spec: | ||
value_file: ./.secrets/mysql_port | ||
--- | ||
kind: secret | ||
metadata: | ||
name: vector_ingest_mysql_user | ||
spec_version: v1 | ||
spec: | ||
value_file: ./.secrets/mysql_user | ||
--- | ||
kind: secret | ||
metadata: | ||
name: vector_ingest_mysql_password | ||
spec_version: v1 | ||
spec: | ||
value_file: ./.secrets/mysql_password | ||
--- | ||
kind: secret | ||
metadata: | ||
name: vector_ingest_mongodb_uri | ||
spec_version: v1 | ||
spec: | ||
value_file: ./.secrets/mongodb_uri | ||
--- | ||
kind: secret | ||
metadata: | ||
name: vector_ingest_model_server | ||
name: vector_ingest_job_config | ||
spec_version: v1 | ||
spec: | ||
value_file: ./.secrets/model_server | ||
value_file: ./.secrets/job_config | ||
--- | ||
kind: pipeline | ||
metadata: | ||
name: webinar_vector_ingestion_fallback | ||
name: example-vector-ingestion | ||
spec_version: v2 | ||
spec: | ||
type: PYTHON | ||
job_file_path: ./target/pyflink-job.zip | ||
properties: | ||
secrets: | ||
- vector_ingest_mysql_host | ||
- vector_ingest_mysql_port | ||
- vector_ingest_mysql_user | ||
- vector_ingest_mysql_password | ||
- vector_ingest_mongodb_uri | ||
- vector_ingest_model_server | ||
flink_version: 1.18-python310 | ||
- vector_ingest_job_config | ||
flink_version: 1.19-python311 | ||
additional_metrics: [] | ||
execution: | ||
active: true | ||
task_size: M | ||
task_size: L | ||
task_count: 1 |
Oops, something went wrong.