Skip to content

Commit

Permalink
cleanup openapi examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cioddi committed Jan 1, 2024
1 parent 3b5e87a commit 5beb17e
Show file tree
Hide file tree
Showing 22 changed files with 659 additions and 939 deletions.
284 changes: 284 additions & 0 deletions examples/privategpt/assets/chat_5.cast
Original file line number Diff line number Diff line change
@@ -0,0 +1,284 @@
{"version": 2, "width": 80, "height": 15, "timestamp": 1704131428, "idle_time_limit": 1.0, "env": {"SHELL": "/bin/bash", "TERM": "xterm"}, "title": "script"}
[0.003776, "o", "\u001b[32;1m❯\u001b[0m "]
[1.00744, "o", "p"]
[1.019829, "o", "i"]
[1.031898, "o", "p"]
[1.04377, "o", " "]
[1.055973, "o", "i"]
[1.06793, "o", "n"]
[1.079769, "o", "s"]
[1.092058, "o", "t"]
[1.104486, "o", "a"]
[1.116389, "o", "l"]
[1.128583, "o", "l"]
[1.141301, "o", " "]
[1.153163, "o", "c"]
[1.164483, "o", "l"]
[1.176304, "o", "i"]
[1.188807, "o", "c"]
[1.20093, "o", "k"]
[2.214484, "o", "\u001b[0m\r\n"]
[2.689146, "o", "Collecting click\r\n"]
[2.804374, "o", " Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB)\r\n"]
[2.827783, "o", "Downloading click-8.1.7-py3-none-any.whl (97 kB)\r\n"]
[2.828135, "o", "\u001b[?25l"]
[2.829366, "o", " \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/97.9 kB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m"]
[2.860488, "o", "\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m97.9/97.9 kB\u001b[0m \u001b[31m3.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\r\n\u001b[?25h"]
[3.01512, "o", "Installing collected packages: click\r\n"]
[3.063182, "o", "Successfully installed click-8.1.7\r\n"]
[3.218132, "o", "\u001b[32;1m❯\u001b[0m "]
[4.221884, "o", "e"]
[4.234104, "o", "c"]
[4.245677, "o", "h"]
[4.257777, "o", "o"]
[4.269907, "o", " "]
[4.28189, "o", "\""]
[4.293829, "o", "I"]
[4.306776, "o", " "]
[4.318688, "o", "h"]
[4.330238, "o", "a"]
[4.34215, "o", "v"]
[4.353819, "o", "e"]
[4.365959, "o", " "]
[4.377594, "o", "a"]
[4.389916, "o", " "]
[4.402027, "o", "c"]
[4.413643, "o", "o"]
[4.425554, "o", "m"]
[4.438391, "o", "p"]
[4.450092, "o", "u"]
[4.462101, "o", "t"]
[4.474332, "o", "e"]
[4.486089, "o", "r"]
[4.498268, "o", " "]
[4.510221, "o", "p"]
[4.521833, "o", "r"]
[4.534203, "o", "o"]
[4.54631, "o", "b"]
[4.558369, "o", "l"]
[4.570225, "o", "e"]
[4.582532, "o", "m"]
[4.594485, "o", ","]
[4.606265, "o", " "]
[4.618408, "o", "w"]
[4.630298, "o", "h"]
[4.642465, "o", "i"]
[4.654348, "o", "c"]
[4.66669, "o", "h"]
[4.678194, "o", " "]
[4.690469, "o", "e"]
[4.701981, "o", "m"]
[4.71353, "o", "p"]
[4.725038, "o", "l"]
[4.736289, "o", "o"]
[4.747521, "o", "y"]
[4.758959, "o", "e"]
[4.769911, "o", "e"]
[4.78123, "o", " "]
[4.79248, "o", "w"]
[4.803547, "o", "o"]
[4.814789, "o", "u"]
[4.825914, "o", "l"]
[4.837073, "o", "d"]
[4.848285, "o", " "]
[4.859504, "o", "b"]
[4.870597, "o", "e"]
[4.88194, "o", " "]
[4.893164, "o", "b"]
[4.904284, "o", "e"]
[4.915486, "o", "s"]
[4.927063, "o", "t"]
[4.938684, "o", " "]
[4.950276, "o", "s"]
[4.962102, "o", "u"]
[4.974063, "o", "i"]
[4.986115, "o", "t"]
[4.998057, "o", "e"]
[5.010135, "o", "d"]
[5.022059, "o", " "]
[5.033754, "o", "t"]
[5.045867, "o", "o"]
[5.057726, "o", " "]
[5.069074, "o", "h"]
[5.081229, "o", "e"]
[5.092664, "o", "l"]
[5.104062, "o", "p"]
[5.11549, "o", " "]
[5.126934, "o", "m"]
[5.139606, "o", "e"]
[5.151691, "o", " "]
[5.1631, "o", "b"]
[5.175237, "o", "a"]
[5.187875, "o", "s"]
[5.199616, "o", "e"]
[5.211257, "o", "d"]
[5.22247, "o", " "]
[5.233993, "o", "o"]
[5.245554, "o", "n"]
[5.257934, "o", " "]
[5.269855, "o", "t"]
[5.281818, "o", "h"]
[5.29356, "o", "e"]
[5.305376, "o", " "]
[5.317746, "o", "s"]
[5.329762, "o", "k"]
[5.341411, "o", "i"]
[5.35354, "o", "l"]
[5.365134, "o", "l"]
[5.376957, "o", "s"]
[5.388804, "o", "e"]
[5.40055, "o", "t"]
[5.412844, "o", "?"]
[5.424246, "o", " "]
[5.435631, "o", "G"]
[5.448386, "o", "i"]
[5.459867, "o", "v"]
[5.471645, "o", "e"]
[5.483976, "o", " "]
[5.497184, "o", "m"]
[5.508951, "o", "e"]
[5.520981, "o", " "]
[5.533203, "o", "a"]
[5.545233, "o", " "]
[5.556936, "o", "l"]
[5.568735, "o", "i"]
[5.581497, "o", "s"]
[5.593323, "o", "t"]
[5.604959, "o", " "]
[5.617479, "o", "o"]
[5.629154, "o", "f"]
[5.641399, "o", " "]
[5.653511, "o", "t"]
[5.665387, "o", "h"]
[5.677537, "o", "r"]
[5.689814, "o", "e"]
[5.702575, "o", "e"]
[5.714264, "o", " "]
[5.726139, "o", "p"]
[5.737982, "o", "o"]
[5.750102, "o", "s"]
[5.762361, "o", "s"]
[5.773993, "o", "i"]
[5.786163, "o", "b"]
[5.798623, "o", "l"]
[5.810302, "o", "e"]
[5.821783, "o", " "]
[5.833676, "o", "e"]
[5.84639, "o", "m"]
[5.85816, "o", "p"]
[5.869774, "o", "l"]
[5.8811, "o", "o"]
[5.892465, "o", "y"]
[5.903641, "o", "e"]
[5.915224, "o", "e"]
[5.926243, "o", "s"]
[5.937331, "o", " "]
[5.948503, "o", "a"]
[5.959928, "o", "n"]
[5.971601, "o", "d"]
[5.982842, "o", " "]
[5.994018, "o", "r"]
[6.005166, "o", "e"]
[6.01654, "o", "a"]
[6.027878, "o", "s"]
[6.039059, "o", "o"]
[6.050439, "o", "n"]
[6.061771, "o", "i"]
[6.073095, "o", "n"]
[6.084385, "o", "g"]
[6.095853, "o", "."]
[6.107455, "o", "\""]
[6.118762, "o", " "]
[6.130218, "o", "|"]
[6.141347, "o", " "]
[6.152425, "o", "O"]
[6.163975, "o", "P"]
[6.175531, "o", "E"]
[6.186885, "o", "N"]
[6.198342, "o", "A"]
[6.210033, "o", "I"]
[6.221505, "o", "_"]
[6.233512, "o", "A"]
[6.245118, "o", "P"]
[6.25699, "o", "I"]
[6.26864, "o", "_"]
[6.280295, "o", "U"]
[6.291857, "o", "R"]
[6.303136, "o", "L"]
[6.31438, "o", "="]
[6.325611, "o", "h"]
[6.336901, "o", "t"]
[6.34811, "o", "t"]
[6.359319, "o", "p"]
[6.370501, "o", ":"]
[6.381608, "o", "/"]
[6.393392, "o", "/"]
[6.404638, "o", "l"]
[6.415965, "o", "o"]
[6.427617, "o", "c"]
[6.439337, "o", "a"]
[6.450506, "o", "l"]
[6.462344, "o", "h"]
[6.473721, "o", "o"]
[6.485198, "o", "s"]
[6.49668, "o", "t"]
[6.508399, "o", ":"]
[6.520155, "o", "8"]
[6.531751, "o", "0"]
[6.543061, "o", "0"]
[6.554244, "o", "1"]
[6.56618, "o", "/"]
[6.578114, "o", "v"]
[6.589917, "o", "1"]
[6.601542, "o", "/"]
[6.612922, "o", "c"]
[6.624451, "o", "o"]
[6.63643, "o", "m"]
[6.648433, "o", "p"]
[6.660318, "o", "l"]
[6.672167, "o", "e"]
[6.684283, "o", "t"]
[6.696157, "o", "i"]
[6.708165, "o", "o"]
[6.720311, "o", "n"]
[6.732447, "o", "s"]
[6.744626, "o", " "]
[6.756741, "o", "p"]
[6.769162, "o", "y"]
[6.781172, "o", "t"]
[6.793196, "o", "h"]
[6.805653, "o", "o"]
[6.817696, "o", "n"]
[6.82936, "o", " "]
[6.841622, "o", "c"]
[6.853831, "o", "l"]
[6.865497, "o", "i"]
[6.877264, "o", "e"]
[6.888919, "o", "n"]
[6.90049, "o", "t"]
[6.912292, "o", "/"]
[6.924406, "o", "c"]
[6.936268, "o", "l"]
[6.947735, "o", "i"]
[6.959829, "o", "."]
[6.971959, "o", "p"]
[6.984192, "o", "y"]
[6.996557, "o", " "]
[7.008634, "o", "c"]
[7.020436, "o", "o"]
[7.033033, "o", "m"]
[7.045297, "o", "p"]
[7.056998, "o", "l"]
[7.069169, "o", "e"]
[7.081231, "o", "t"]
[7.0933, "o", "e"]
[7.105149, "o", " "]
[7.117302, "o", "-"]
[8.130787, "o", "\u001b[0m\r\n"]
[58.367633, "o", "{'id': '344afc00-c7bb-4caa-9f78-7732733d7887', 'object': 'completion', 'created': 1704131487, 'model': 'private-gpt', 'choices': [{'finish_reason': 'stop', 'delta': None, 'message': {'role': 'assistant', 'content': \" Based on the provided context information, here are three employees who could potentially help with a computer problem and the reasoning behind each choice:\\n\\n1. John Doe (HR): While John Doe may not have direct experience in computer-related issues, his strong communication skills could be beneficial in understanding the problem and coordinating with IT personnel to resolve it. Additionally, teamwork is another skill that could come in handy if multiple people are needed to troubleshoot the issue.\\n\\n2. Jane Smith (IT): As an employee in the IT department, Jane Smith has extensive knowledge and experience in programming and problem-solving, making her a strong candidate for resolving computer issues. Her skills would allow her to diagnose and potentially fix the problem herself or guide others "]
[58.367756, "o", "through the process.\\n\\n3. Mike Wilson (Operations): Mike Wilson's expertise in logistics and supply chain management may not directly relate to computer problems, but his ability to manage complex systems and analyze data could be valuable when dealing with a technical issue. Additionally, his experience in managing projects and coordinating resources could help ensure that any necessary repairs or replacements are carried out efficiently.\"}, 'sources': [{'object': 'context.chunk', 'score': 0.6165339073286464, 'document': {'object': 'ingest.document', 'doc_id': '465c3fec-1b11-458e-8c33-028b968f2240', 'doc_metadata': {'window': '\"employees\": [\\n\"name\": \"John Doe\",\\n\"birthdate\": \"1990-05-15\",\\n\"branch\": \"HR\",\\n\"skills\": [\\n\"communication\",\\n\"teamwork\"\\n\"name\": \"Jane Smith\",\\n\"birthdate\": \"1985-12-10\",\\n\"branch\": \"IT\",\\n\"skills\": [\\n\"programming\",\\n\"problem-solving\"\\n\"name\": \"Alice Johnson\",\\n\"birthdate\": \"1992-08-23\",\\n\"branch\": \"Marketing\",\\n\"skills\": [\\n\"marketing\",\\n\"social media\"\\n\"name\": \"Bob Miller\",\\n\"b"]
[58.367868, "o", "irthdate\": \"1988-03-04\",\\n\"branch\": \"Finance\",\\n\"skills\": [\\n\"accounting\",\\n\"financial analysis\"\\n\"name\": \"Eva Brown\",\\n\"birthdate\": \"1995-07-18\",\\n\"branch\": \"IT\",\\n\"skills\": [\\n\"networking\",\\n\"cybersecurity\"\\n\"name\": \"Mike Wilson\",\\n\"birthdate\": \"1991-09-30\",\\n\"branch\": \"Operations\",\\n\"skills\": [\\n\"logistics\",\\n\"supply chain management\"\\n\"name\": \"Grace Turner\",\\n\"birthdate\": \"1987-02-12\",\\n\"branch\": \"HR\",\\n\"skills\": [\\n\"recruitment\",\\n\"employee relations\"\\n\"name\": \"Daniel Carter\",\\n\"birthdate\": \"1993-11-08\",\\n\"branch\": \"Marketing\",\\n\"skills\": [\\n\"content creation\",\\n\"branding\"\\n\"name\": \"Olivia White\",\\n\"birthdate\": \"1986-06-25\",\\n\"branch\": \"Finance\",\\n\"skills\": [\\n\"financial planning\",\\n\"investment analysis\"\\n\"name\": \"Ryan Adams\",\\n\"birthdate\": \"1994-04-20\",\\n\"branch\": \"IT\",\\n\"skills\": [\\n\"software development\",\\n\"database management\"', 'original_text': '\"employees\": [\\n\"name\": \"John Doe\",\\n\"birthdate\": \"1990-05-15\",\\n\"branch\": \"HR\",\\n\"skills\": [\\n\"communication\",\\n\"teamwork\"\\n\"name\": \"Jane Smith\",\\n\"birthda"]
[58.367914, "o", "te\": \"1985-12-10\",\\n\"branch\": \"IT\",\\n\"skills\": [\\n\"programming\",\\n\"problem-solving\"\\n\"name\": \"Alice Johnson\",\\n\"birthdate\": \"1992-08-23\",\\n\"branch\": \"Marketing\",\\n\"skills\": [\\n\"marketing\",\\n\"social media\"\\n\"name\": \"Bob Miller\",\\n\"birthdate\": \"1988-03-04\",\\n\"branch\": \"Finance\",\\n\"skills\": [\\n\"accounting\",\\n\"financial analysis\"\\n\"name\": \"Eva Brown\",\\n\"birthdate\": \"1995-07-18\",\\n\"branch\": \"IT\",\\n\"skills\": [\\n\"networking\",\\n\"cybersecurity\"\\n\"name\": \"Mike Wilson\",\\n\"birthdate\": \"1991-09-30\",\\n\"branch\": \"Operations\",\\n\"skills\": [\\n\"logistics\",\\n\"supply chain management\"\\n\"name\": \"Grace Turner\",\\n\"birthdate\": \"1987-02-12\",\\n\"branch\": \"HR\",\\n\"skills\": [\\n\"recruitment\",\\n\"employee relations\"\\n\"name\": \"Daniel Carter\",\\n\"birthdate\": \"1993-11-08\",\\n\"branch\": \"Marketing\",\\n\"skills\": [\\n\"content creation\",\\n\"branding\"\\n\"name\": \"Olivia White\",\\n\"birthdate\": \"1986-06-25\",\\n\"branch\": \"Finance\",\\n\"skills\": [\\n\"financial planning\",\\n\"investment analysis\"\\n\"name\": \"Ryan Adams\",\\n\"birthdate\": \"1994-04-20\",\\n\"branch\": \"IT\",\\n\"skil"]
[58.367975, "o", "ls\": [\\n\"software development\",\\n\"database management\"', 'file_name': 'employees.json', 'doc_id': '465c3fec-1b11-458e-8c33-028b968f2240'}}, 'text': '\"employees\": [\\n\"name\": \"John Doe\",\\n\"birthdate\": \"1990-05-15\",\\n\"branch\": \"HR\",\\n\"skills\": [\\n\"communication\",\\n\"teamwork\"\\n\"name\": \"Jane Smith\",\\n\"birthdate\": \"1985-12-10\",\\n\"branch\": \"IT\",\\n\"skills\": [\\n\"programming\",\\n\"problem-solving\"\\n\"name\": \"Alice Johnson\",\\n\"birthdate\": \"1992-08-23\",\\n\"branch\": \"Marketing\",\\n\"skills\": [\\n\"marketing\",\\n\"social media\"\\n\"name\": \"Bob Miller\",\\n\"birthdate\": \"1988-03-04\",\\n\"branch\": \"Finance\",\\n\"skills\": [\\n\"accounting\",\\n\"financial analysis\"\\n\"name\": \"Eva Brown\",\\n\"birthdate\": \"1995-07-18\",\\n\"branch\": \"IT\",\\n\"skills\": [\\n\"networking\",\\n\"cybersecurity\"\\n\"name\": \"Mike Wilson\",\\n\"birthdate\": \"1991-09-30\",\\n\"branch\": \"Operations\",\\n\"skills\": [\\n\"logistics\",\\n\"supply chain management\"\\n\"name\": \"Grace Turner\",\\n\"birthdate\": \"1987-02-12\",\\n\"branch\": \"HR\",\\n\"skills\": [\\n\"recruitment\",\\n\"employee relations\"\\n\"name\": \"Daniel Carter\",\\n"]
[58.368029, "o", "\"birthdate\": \"1993-11-08\",\\n\"branch\": \"Marketing\",\\n\"skills\": [\\n\"content creation\",\\n\"branding\"\\n\"name\": \"Olivia White\",\\n\"birthdate\": \"1986-06-25\",\\n\"branch\": \"Finance\",\\n\"skills\": [\\n\"financial planning\",\\n\"investment analysis\"\\n\"name\": \"Ryan Adams\",\\n\"birthdate\": \"1994-04-20\",\\n\"branch\": \"IT\",\\n\"skills\": [\\n\"software development\",\\n\"database management\"', 'previous_texts': None, 'next_texts': None}], 'index': 0}]}\r\nBased on the provided context information, here are three employees who could potentially help with a computer problem and the reasoning behind each choice:\r\n\r\n1. John Doe (HR): While John Doe may not have direct experience in computer-related issues, his strong communication skills could be beneficial in understanding the problem and coordinating with IT personnel to resolve it. Additionally, teamwork is another skill that could come in handy if multiple people are needed to troubleshoot the issue.\r\n\r\n2. Jane Smith (IT): As an employee in the IT department, Jane Smith has extensive knowledge a"]
[58.368118, "o", "nd experience in programming and problem-solving, making her a strong candidate for resolving computer issues. Her skills would allow her to diagnose and potentially fix the problem herself or guide others through the process.\r\n\r\n3. Mike Wilson (Operations): Mike Wilson's expertise in logistics and supply chain management may not directly relate to computer problems, but his ability to manage complex systems and analyze data could be valuable when dealing with a technical issue. Additionally, his experience in managing projects and coordinating resources could help ensure that any necessary repairs or replacements are carried out efficiently.\r\n"]
Binary file added examples/privategpt/assets/chat_5.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5beb17e

Please sign in to comment.