lynxkite / examples /LynxScribe demo
mszel's picture
fixing the lynxscribe demo
ed1dc36
raw
history blame
22.9 kB
{
"edges": [
{
"id": "xy-edge__Truncate history 1output-Chat processor 1processor",
"source": "Truncate history 1",
"sourceHandle": "output",
"target": "Chat processor 1",
"targetHandle": "processor"
},
{
"id": "xy-edge__Mask 1output-Chat processor 1processor",
"source": "Mask 1",
"sourceHandle": "output",
"target": "Chat processor 1",
"targetHandle": "processor"
},
{
"id": "xy-edge__Mask 2output-Chat processor 1processor",
"source": "Mask 2",
"sourceHandle": "output",
"target": "Chat processor 1",
"targetHandle": "processor"
},
{
"id": "xy-edge__Input chat 1output-Test Chat API 2message",
"source": "Input chat 1",
"sourceHandle": "output",
"target": "Test Chat API 2",
"targetHandle": "message"
},
{
"id": "xy-edge__Test Chat API 2output-View 1input",
"source": "Test Chat API 2",
"sourceHandle": "output",
"target": "View 1",
"targetHandle": "input"
},
{
"id": "LynxScribe RAG Graph Chatbot Backend 1 Test Chat API 2",
"source": "LynxScribe RAG Graph Chatbot Backend 1",
"sourceHandle": "output",
"target": "Test Chat API 2",
"targetHandle": "chat_api"
},
{
"id": "Chat processor 1 LynxScribe RAG Graph Chatbot Backend 1",
"source": "Chat processor 1",
"sourceHandle": "output",
"target": "LynxScribe RAG Graph Chatbot Backend 1",
"targetHandle": "chat_processor"
},
{
"id": "Cloud-sourced File Loader 1 LynxScribe RAG Graph Chatbot Builder 1",
"source": "Cloud-sourced File Loader 1",
"sourceHandle": "output",
"target": "LynxScribe RAG Graph Chatbot Builder 1",
"targetHandle": "file_urls"
},
{
"id": "LynxScribe RAG Graph Chatbot Builder 1 LynxScribe RAG Graph Chatbot Backend 1",
"source": "LynxScribe RAG Graph Chatbot Builder 1",
"sourceHandle": "output",
"target": "LynxScribe RAG Graph Chatbot Backend 1",
"targetHandle": "knowledge_base"
},
{
"id": "LynxScribe RAG Graph Vector Store 1 LynxScribe RAG Graph Chatbot Builder 1",
"source": "LynxScribe RAG Graph Vector Store 1",
"sourceHandle": "output",
"target": "LynxScribe RAG Graph Chatbot Builder 1",
"targetHandle": "rag_graph"
}
],
"env": "LynxScribe",
"nodes": [
{
"data": {
"__execution_delay": 0.0,
"collapsed": null,
"display": null,
"error": null,
"meta": {
"inputs": {},
"name": "Input chat",
"outputs": {
"output": {
"name": "output",
"position": "right",
"type": {
"type": "None"
}
}
},
"params": {
"chat": {
"default": null,
"name": "chat",
"type": {
"type": "<class 'str'>"
}
}
},
"type": "basic"
},
"params": {
"chat": "What products does Lynx have?"
},
"status": "done",
"title": "Input chat"
},
"dragHandle": ".bg-primary",
"height": 186.0,
"id": "Input chat 1",
"parentId": null,
"position": {
"x": -2606.8829929570456,
"y": -648.2654341415332
},
"type": "basic",
"width": 259.0
},
{
"data": {
"display": {
"dataframes": {
"df": {
"columns": [
"answer"
],
"data": [
[
"Lynx Analytics offers a range of data analytics products and solutions tailored for various industries. Here are some of our key offerings:\n\n- **Generative AI**: We provide innovative solutions such as chatbots specifically designed for the pharmaceutical and service provider sectors.\n \n- **Graph AI**: Our advanced graph reasoning tools help in areas like transport scenario planning and predicting patient outcomes with graph representation learning.\n\n- **Pharma and Life Sciences**: We focus on marketing support, including Next Best Action predictions and Brand Adoption Ladder analysis, as well as supporting drug discovery and medical analytics.\n\n- **Retail Solutions**: Our products include Price AI, Assort AI, and Promo AI to optimize pricing, assortment, and promotion strategies for retailers.\n\n- **Financial Services**: We offer digital banking analytics solutions and a Customer Happiness Index to enhance customer experience and retention.\n\n- **Telecommunications**: While briefly mentioned, our telecom solutions help optimize operations, including fibre CAPEX optimization and churn prevention management.\n\nThese products are complemented by consulting services to help businesses make data-driven decisions. If you need more specific information or a demo, feel free to get in touch.\n\nCould you share what prompted your visit to our website today? Or may I know which specific domain or industry you are interested in or work in?"
]
]
}
}
},
"error": null,
"meta": {
"inputs": {
"input": {
"name": "input",
"position": "left",
"type": {
"type": "<class 'inspect._empty'>"
}
}
},
"name": "View",
"outputs": {},
"params": {},
"type": "table_view"
},
"params": {},
"status": "done",
"title": "View"
},
"dragHandle": ".bg-primary",
"height": 950.0,
"id": "View 1",
"parentId": null,
"position": {
"x": -754.9225960536905,
"y": -643.161064357758
},
"type": "table_view",
"width": 1256.0
},
{
"data": {
"display": null,
"error": null,
"meta": {
"inputs": {},
"name": "Truncate history",
"outputs": {
"output": {
"name": "output",
"position": "top",
"type": {
"type": "None"
}
}
},
"params": {
"max_tokens": {
"default": 10000.0,
"name": "max_tokens",
"type": {
"type": "<class 'int'>"
}
}
},
"type": "basic"
},
"params": {
"max_tokens": 10000.0
},
"status": "done",
"title": "Truncate history"
},
"dragHandle": ".bg-primary",
"height": 200.0,
"id": "Truncate history 1",
"parentId": null,
"position": {
"x": -1536.508533731351,
"y": 728.1204075546109
},
"type": "basic",
"width": 200.0
},
{
"data": {
"__execution_delay": null,
"collapsed": false,
"display": null,
"error": null,
"meta": {
"inputs": {
"processor": {
"name": "processor",
"position": "bottom",
"type": {
"type": "<class 'inspect._empty'>"
}
}
},
"name": "Chat processor",
"outputs": {
"output": {
"name": "output",
"position": "top",
"type": {
"type": "None"
}
}
},
"params": {},
"type": "basic"
},
"params": {},
"status": "done",
"title": "Chat processor"
},
"dragHandle": ".bg-primary",
"height": 89.0,
"id": "Chat processor 1",
"parentId": null,
"position": {
"x": -1527.1027075359414,
"y": 605.2129408898476
},
"type": "basic",
"width": 416.0
},
{
"data": {
"display": null,
"error": null,
"meta": {
"inputs": {},
"name": "Mask",
"outputs": {
"output": {
"name": "output",
"position": "top",
"type": {
"type": "None"
}
}
},
"params": {
"exceptions": {
"default": "",
"name": "exceptions",
"type": {
"type": "<class 'str'>"
}
},
"mask_pattern": {
"default": "",
"name": "mask_pattern",
"type": {
"type": "<class 'str'>"
}
},
"name": {
"default": "",
"name": "name",
"type": {
"type": "<class 'str'>"
}
},
"regex": {
"default": "",
"name": "regex",
"type": {
"type": "<class 'str'>"
}
}
},
"type": "basic"
},
"params": {
"exceptions": "[email protected],[email protected],[email protected],[email protected]",
"mask_pattern": "masked_email_address_{}",
"name": "email",
"regex": "([a-z0-9!#$%&'*+\\/=?^_`{|.}~-]+@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)"
},
"status": "done",
"title": "Mask"
},
"dragHandle": ".bg-primary",
"height": 358.0,
"id": "Mask 1",
"parentId": null,
"position": {
"x": -1309.5065330408577,
"y": 731.6791509394458
},
"type": "basic",
"width": 313.0
},
{
"data": {
"display": null,
"error": null,
"meta": {
"inputs": {},
"name": "Mask",
"outputs": {
"output": {
"name": "output",
"position": "top",
"type": {
"type": "None"
}
}
},
"params": {
"exceptions": {
"default": "",
"name": "exceptions",
"type": {
"type": "<class 'str'>"
}
},
"mask_pattern": {
"default": "",
"name": "mask_pattern",
"type": {
"type": "<class 'str'>"
}
},
"name": {
"default": "",
"name": "name",
"type": {
"type": "<class 'str'>"
}
},
"regex": {
"default": "",
"name": "regex",
"type": {
"type": "<class 'str'>"
}
}
},
"type": "basic"
},
"params": {
"exceptions": "",
"mask_pattern": "masked_credit_card_number_{}",
"name": "credit_card",
"regex": "((?:(?:\\\\d{4}[- ]?){3}\\\\d{4}|\\\\d{15,16}))(?![\\\\d])"
},
"status": "done",
"title": "Mask"
},
"dragHandle": ".bg-primary",
"height": 358.0,
"id": "Mask 2",
"parentId": null,
"position": {
"x": -983.2612912523697,
"y": 731.5859900002104
},
"type": "basic",
"width": 315.0
},
{
"data": {
"__execution_delay": 0.0,
"collapsed": false,
"display": null,
"error": null,
"meta": {
"inputs": {
"chat_api": {
"name": "chat_api",
"position": "bottom",
"type": {
"type": "<class 'inspect._empty'>"
}
},
"message": {
"name": "message",
"position": "left",
"type": {
"type": "<class 'inspect._empty'>"
}
}
},
"name": "Test Chat API",
"outputs": {
"output": {
"name": "output",
"position": "right",
"type": {
"type": "None"
}
}
},
"params": {
"show_details": {
"default": false,
"name": "show_details",
"type": {
"type": "<class 'bool'>"
}
}
},
"type": "basic"
},
"params": {},
"status": "done",
"title": "Test Chat API"
},
"dragHandle": ".bg-primary",
"height": 201.0,
"id": "Test Chat API 2",
"parentId": null,
"position": {
"x": -2024.044443214723,
"y": -654.8412606520155
},
"type": "basic",
"width": 906.0
},
{
"data": {
"__execution_delay": 0.0,
"collapsed": null,
"display": null,
"error": null,
"meta": {
"inputs": {},
"name": "LynxScribe RAG Graph Vector Store",
"outputs": {
"output": {
"name": "output",
"position": "top",
"type": {
"type": "None"
}
}
},
"params": {
"collection_name": {
"default": "lynx",
"name": "collection_name",
"type": {
"type": "<class 'str'>"
}
},
"name": {
"default": "faiss",
"name": "name",
"type": {
"type": "<class 'str'>"
}
},
"num_dimensions": {
"default": 3072.0,
"name": "num_dimensions",
"type": {
"type": "<class 'int'>"
}
},
"text_embedder_interface": {
"default": "openai",
"name": "text_embedder_interface",
"type": {
"type": "<class 'str'>"
}
},
"text_embedder_model_name_or_path": {
"default": "text-embedding-3-large",
"name": "text_embedder_model_name_or_path",
"type": {
"type": "<class 'str'>"
}
}
},
"position": {
"x": 189.0,
"y": 489.0
},
"type": "basic"
},
"params": {
"collection_name": "lynx",
"name": "faiss",
"num_dimensions": "1536",
"text_embedder_interface": "openai",
"text_embedder_model_name_or_path": "text-embedding-ada-002"
},
"status": "done",
"title": "LynxScribe RAG Graph Vector Store"
},
"dragHandle": ".bg-primary",
"height": 443.0,
"id": "LynxScribe RAG Graph Vector Store 1",
"position": {
"x": -2019.279230344727,
"y": 1080.1955856484205
},
"type": "basic",
"width": 336.0
},
{
"data": {
"__execution_delay": 0.0,
"collapsed": null,
"display": null,
"error": null,
"meta": {
"inputs": {},
"name": "Cloud-sourced File Loader",
"outputs": {
"output": {
"name": "output",
"position": "right",
"type": {
"type": "None"
}
}
},
"params": {
"accepted_file_types": {
"default": ".jpg, .jpeg, .png",
"name": "accepted_file_types",
"type": {
"type": "<class 'str'>"
}
},
"cloud_provider": {
"default": "gcp",
"name": "cloud_provider",
"type": {
"type": "<class 'str'>"
}
},
"folder_URL": {
"default": "https://storage.googleapis.com/lynxkite_public_data/lynxscribe-images/image-rag-test",
"name": "folder_URL",
"type": {
"type": "<class 'str'>"
}
}
},
"position": {
"x": 189.0,
"y": 412.0
},
"type": "basic"
},
"params": {
"accepted_file_types": ".pickle",
"cloud_provider": "gcp",
"folder_URL": "https://storage.googleapis.com/lynxkite_public_data/lynxscribe-knowledge-graphs/lynx-chatbot"
},
"status": "done",
"title": "Cloud-sourced File Loader"
},
"dragHandle": ".bg-primary",
"height": 325.0,
"id": "Cloud-sourced File Loader 1",
"position": {
"x": -2884.195823214815,
"y": 630.6408986626046
},
"type": "basic",
"width": 622.0
},
{
"data": {
"__execution_delay": 0.0,
"collapsed": null,
"display": null,
"error": null,
"meta": {
"inputs": {
"chat_processor": {
"name": "chat_processor",
"position": "bottom",
"type": {
"type": "<class 'inspect._empty'>"
}
},
"knowledge_base": {
"name": "knowledge_base",
"position": "bottom",
"type": {
"type": "<class 'inspect._empty'>"
}
}
},
"name": "LynxScribe RAG Graph Chatbot Backend",
"outputs": {
"output": {
"name": "output",
"position": "top",
"type": {
"type": "None"
}
}
},
"params": {
"llm_interface": {
"default": "openai",
"name": "llm_interface",
"type": {
"type": "<class 'str'>"
}
},
"llm_model_name": {
"default": "gpt-4o",
"name": "llm_model_name",
"type": {
"type": "<class 'str'>"
}
},
"negative_answer": {
"default": "I'm sorry, but the data I've been trained on does not contain any information related to your question.",
"name": "negative_answer",
"type": {
"type": "<class 'str'>"
}
},
"retriever_limits_by_type": {
"default": "{}",
"name": "retriever_limits_by_type",
"type": {
"type": "<class 'str'>"
}
},
"retriever_max_iterations": {
"default": 3.0,
"name": "retriever_max_iterations",
"type": {
"type": "<class 'int'>"
}
},
"retriever_overall_chunk_limit": {
"default": 20.0,
"name": "retriever_overall_chunk_limit",
"type": {
"type": "<class 'int'>"
}
},
"retriever_overall_token_limit": {
"default": 3000.0,
"name": "retriever_overall_token_limit",
"type": {
"type": "<class 'int'>"
}
},
"retriever_strict_limits": {
"default": true,
"name": "retriever_strict_limits",
"type": {
"type": "<class 'bool'>"
}
}
},
"position": {
"x": 543.0,
"y": 256.0
},
"type": "basic"
},
"params": {
"llm_interface": "openai",
"llm_model_name": "gpt-4o",
"negative_answer": "I'm sorry, but the data I've been trained on does not contain any information related to your question.",
"retriever_limits_by_type": "{\"information\": [1, 5], \"summary\": [0, 2], \"template_qna\": [1, 3], \"QnA question\": [0, 0]}",
"retriever_max_iterations": 3.0,
"retriever_overall_chunk_limit": "20",
"retriever_overall_token_limit": 3000.0,
"retriever_strict_limits": true
},
"status": "done",
"title": "LynxScribe RAG Graph Chatbot Backend"
},
"dragHandle": ".bg-primary",
"height": 556.0,
"id": "LynxScribe RAG Graph Chatbot Backend 1",
"position": {
"x": -2020.0,
"y": -188.33333333333334
},
"type": "basic",
"width": 903.0
},
{
"data": {
"display": null,
"error": null,
"meta": {
"inputs": {
"file_urls": {
"name": "file_urls",
"position": "left",
"type": {
"type": "<class 'inspect._empty'>"
}
},
"rag_graph": {
"name": "rag_graph",
"position": "bottom",
"type": {
"type": "<class 'inspect._empty'>"
}
}
},
"name": "LynxScribe RAG Graph Chatbot Builder",
"outputs": {
"output": {
"name": "output",
"position": "top",
"type": {
"type": "None"
}
}
},
"params": {
"input_type": {
"default": "v1",
"name": "input_type",
"type": {
"type": "<class 'str'>"
}
},
"node_types": {
"default": "intent_cluster",
"name": "node_types",
"type": {
"type": "<class 'str'>"
}
},
"scenario_file": {
"default": "uploads/lynx_chatbot_scenario_selector.yaml",
"name": "scenario_file",
"type": {
"type": "<class 'str'>"
}
}
},
"position": {
"x": 466.0,
"y": 478.0
},
"type": "basic"
},
"params": {
"input_type": "v1",
"node_types": "intent_cluster",
"scenario_file": "uploads/lynx_chatbot_scenario_selector.yaml"
},
"status": "done",
"title": "LynxScribe RAG Graph Chatbot Builder"
},
"dragHandle": ".bg-primary",
"height": 364.0,
"id": "LynxScribe RAG Graph Chatbot Builder 1",
"position": {
"x": -2101.666666666667,
"y": 611.6666666666666
},
"type": "basic",
"width": 500.0
}
]
}