-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing create index step and array input for processors
Signed-off-by: Amit Galitzky <[email protected]>
- Loading branch information
1 parent
149e22a
commit ce78f8f
Showing
10 changed files
with
196 additions
and
19 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
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
20 changes: 20 additions & 0 deletions
20
src/main/resources/defaults/conversational-search-defaults.json
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,20 @@ | ||
{ | ||
"template.name": "deploy-cohere-chat-model", | ||
"template.description": "deploying cohere chat model", | ||
"create_connector.name": "Cohere Chat Model", | ||
"create_connector.description": "The connector to Cohere's public chat API", | ||
"create_connector.protocol": "http", | ||
"create_connector.model": "command", | ||
"create_connector.endpoint": "api.cohere.ai", | ||
"create_connector.credential.key": "123", | ||
"create_connector.actions.url": "https://api.cohere.ai/v1/chat", | ||
"create_connector.actions.request_body": "{ \"message\": \"${parameters.message}\", \"model\": \"${parameters.model}\" }", | ||
"register_remote_model.name": "Cohere chat model", | ||
"register_remote_model.description": "cohere-chat-model", | ||
"create_search_pipeline.pipeline_id": "rag-pipeline", | ||
"create_search_pipeline.retrieval_augmented_generation.tag": "openai_pipeline_demo", | ||
"create_search_pipeline.retrieval_augmented_generation.description": "Demo pipeline Using cohere Connector", | ||
"create_search_pipeline.retrieval_augmented_generation.context_field_list": "[\"text\", \"hello\"]", | ||
"create_search_pipeline.retrieval_augmented_generation.system_prompt": "You are a helpful assistant", | ||
"create_search_pipeline.retrieval_augmented_generation.user_instructions": "Generate a concise and informative answer in less than 100 words for the given question" | ||
} |
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
83 changes: 83 additions & 0 deletions
83
...ain/resources/substitutionTemplates/conversational-search-with-cohere-model-template.json
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,83 @@ | ||
{ | ||
"name": "${{template.name}}", | ||
"description": "${{template.description}}", | ||
"use_case": "SEMANTIC_SEARCH", | ||
"version": { | ||
"template": "1.0.0", | ||
"compatibility": [ | ||
"2.12.0", | ||
"3.0.0" | ||
] | ||
}, | ||
"workflows": { | ||
"provision": { | ||
"nodes": [ | ||
{ | ||
"id": "create_connector", | ||
"type": "create_connector", | ||
"user_inputs": { | ||
"name": "${{create_connector}}", | ||
"description": "${{create_connector.description}}", | ||
"version": "1", | ||
"protocol": "${{create_connector.protocol}}", | ||
"parameters": { | ||
"endpoint": "${{create_connector.endpoint}}", | ||
"model": "${{create_connector.model}}" | ||
}, | ||
"credential": { | ||
"key": "${{create_connector.credential.key}}" | ||
}, | ||
"actions": [ | ||
{ | ||
"action_type": "predict", | ||
"method": "POST", | ||
"url": "${{create_connector.actions.url}}", | ||
"headers": { | ||
"Authorization": "Bearer ${credential.key}" | ||
}, | ||
"request_body": "${{create_connector.actions.request_body}}" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "register_model", | ||
"type": "register_remote_model", | ||
"previous_node_inputs": { | ||
"create_connector": "parameters" | ||
}, | ||
"user_inputs": { | ||
"name": "${{register_remote_model.name}}", | ||
"function_name": "remote", | ||
"description": "${{register_remote_model.description}}", | ||
"deploy": true | ||
} | ||
}, | ||
{ | ||
"id": "create_search_pipeline", | ||
"type": "create_search_pipeline", | ||
"previous_node_inputs": { | ||
"register_model": "model_id" | ||
}, | ||
"user_inputs": { | ||
"pipeline_id": "${{create_search_pipeline.pipeline_id}}", | ||
"configurations": { | ||
"response_processors": [ | ||
{ | ||
"retrieval_augmented_generation": { | ||
"tag": "${{create_search_pipeline.retrieval_augmented_generation.tag}}", | ||
"description": "${{create_search_pipeline.retrieval_augmented_generation.description}}", | ||
"model_id": "${{register_model.model_id}}", | ||
"context_field_list": "${{create_search_pipeline.retrieval_augmented_generation.context_field_list}}", | ||
"system_prompt": "${{create_search_pipeline.retrieval_augmented_generation.system_prompt}}", | ||
"user_instructions": "${{create_search_pipeline.retrieval_augmented_generation.user_instructions}}" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
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