You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data Ingestion and Retrieval with custom index_name (opea-project#1439)
* CodeGen initial
Signed-off-by: Mustafa <[email protected]>
* code update
Signed-off-by: Mustafa <[email protected]>
* code update
Signed-off-by: Mustafa <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* adding index_name variable
Signed-off-by: Mustafa <[email protected]>
* update unit tests
Signed-off-by: Mustafa <[email protected]>
* update the tests
Signed-off-by: Mustafa <[email protected]>
* code update & add ingest_with_index test
Signed-off-by: Mustafa <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update redis test
Signed-off-by: Mustafa <[email protected]>
* update retrievers
Signed-off-by: Mustafa <[email protected]>
* update redis-delete_files
Signed-off-by: Mustafa <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Signed-off-by: Mustafa <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Abolfazl Shahbazi <[email protected]>
Signed-off-by: Anthony Mahanna <[email protected]>
'Error during dataprep ingest invocation: "index_name" option is supported if "DATAPREP_COMPONENT_NAME" environment variable is set to "OPEA_DATAPREP_REDIS". i.e: export DATAPREP_COMPONENT_NAME="OPEA_DATAPREP_REDIS"'
'Error during dataprep delete files: "index_name" option is supported if "DATAPREP_COMPONENT_NAME" environment variable is set to "OPEA_DATAPREP_REDIS". i.e: export DATAPREP_COMPONENT_NAME="OPEA_DATAPREP_REDIS"'
logger.info("[ get ] start to get list of indices.")
181
+
182
+
ifdataprep_component_name!="OPEA_DATAPREP_REDIS":
183
+
logger.error(
184
+
'Error during dataprep - get list of indices: "index_name" option is supported if "DATAPREP_COMPONENT_NAME" environment variable is set to "OPEA_DATAPREP_REDIS". i.e: export DATAPREP_COMPONENT_NAME="OPEA_DATAPREP_REDIS"'
185
+
)
186
+
raise
187
+
188
+
try:
189
+
# Use the loader to invoke the component
190
+
response=awaitloader.get_list_of_indices()
191
+
192
+
# Log the result if logging is enabled
193
+
iflogflag:
194
+
logger.info(f"[ get ] list of indices: {response}")
0 commit comments