Skip to content

Instantly share code, notes, and snippets.

@nerdalert
Created July 4, 2024 05:01
Show Gist options
  • Save nerdalert/c597b44f9644e1a96540aa7b9e0d01f0 to your computer and use it in GitHub Desktop.
Save nerdalert/c597b44f9644e1a96540aa7b9e0d01f0 to your computer and use it in GitHub Desktop.
curl -X POST "${DS_HOST}/api/orchestrator/api/v1/query/run"      -H "X-Authorization: Bearer ${DS_TOKEN}"      -H "Content-Type: application/json"      -d '{
           "query": {
             "variables": {},
             "template": {
               "version": "1",
               "tasks": [
                 {
                   "id": "QA",
                   "kind": "SemanticRag",
                   "inputs": {},
                   "parameters": {
                     "doc_id": "'"${DOC_HASH}"'",
                     "question": "'"${DS_QUESTION}"'",
                     "model_id": "'"${DS_MODEL_ID}"'",
                     "retr_k": 3,
                     "use_reranker": false,
                     "hybrid_search_text_weight": 0.1,
                     "gen_timeout": 25,
                     "return_prompt": true
                   },
                   "@resource": {
                     "type": "semantic_backend_genai_runner",
                     "proj_key": "'"${DS_PROJ_KEY}"'",
                     "index_key": "'"${DS_INDEX_KEY}"'"
                   }
                 }
               ],
               "outputs": {
                 "answers": {
                   "task_id": "QA",
                   "output_id": "answers"
                 },
                 "retrieval": {
         }'} } } } "output_id": "retrieval"
{"result":{"outputs":{"answers":[{"answer":"I do not know.","grounding_info":{"gen_ctx_paths":["main-text.30","main-text.31","main-text.32","main-text.33","main-text.34","main-text.35","main-text.36","main-text.38","main-text.39","main-text.40","main-text.41","main-text.42","main-text.43","main-text.45","main-text.47","main-text.48","main-text.49","main-text.50","main-text.51","main-text.52","main-text.53","main-text.54","main-text.55","main-text.56","main-text.57","main-text.58","main-text.59","main-text.60","main-text.61","main-text.62","main-text.63","main-text.64","main-text.65","main-text.66","main-text.67"],"retr_idxs":[0]},"prompt":"Context information is below.\n---------------------\nSix months later, on May 3, 2019, the US Department of Justice concluded its review of IBM's proposed Red Hat acquisition, [45] and according to Steven J. Vaughan-Nichols 'essentially approved the IBM/Red Hat deal '. [46] The acquisition was closed on July 9, 2019. [47]\n\n## Fedora Project\n\nRed Hat is the primary sponsor of the Fedora Project, a community-supported free software project that aims to promote the rapid progress of free and opensource software and content. [48]\n\n## Business model\n\nRed Hat operates on a business model based on open-source software, development within a community, professional quality assurance, and subscription-based customer support. They produce open-source code so that more programmers can make adaptations and improvements.\n\nRed Hat sells subscriptions for the support, training, and integration services that help customers in using their open-source software products. Customers pay one set price for unlimited access to services such as Red Hat Network and up to 24/7 support. [49]\n\nRed Hat Tower with earlier company logo\n\nIn September 2014, however, CEO Jim Whitehurst announced that Red Hat was 'in the midst of a major shift from client-server to cloud-mobile '. [50]\n\nRich Bynum, a member of Red Hat's legal team, attributes Linux's success and rapid development partially to open-source business models, including Red Hat's. [51]\n\n## Programs and projects\n\n## One Laptop per Child\n\nRed Hat engineers worked with the One Laptop per Child initiative (a non-profit organization established by members of the MIT Media Lab) to design and produce an inexpensive laptop and try to provide every child in the world with access to open communication, open knowledge, and open learning. The XO-4 laptop, the last machine the project produced (in 2012), runs a slimmed-down version of Fedora 17 as its operating system.\n\nFedora Project logo\n\nRed Hat Summit is an annual conference, here seen in 2019\n\n## KVM\n\nAvi Kivity began the development of KVM in mid-2006 at Qumranet, a technology startup company that was acquired by Red Hat in 2008. [52][53][54]\n\n## GNOME\n\nRed Hat is the largest contributor to the GNOME desktop environment. It has several employees working full-time on Evolution, the official personal information manager for GNOME.\n\n## systemd\n\nInit system and system/service manager for Linux systems.\n\n## PulseAudio\n\nNetwork-capable sound server program distributed via the freedesktop.org project.\n\n## Dogtail\n\nDogtail, an open-source automated graphical user interface (GUI) test framework initially developed by Red Hat, consists of free software released under the GNU General Public License (GPL) and is written in Python. It allows developers to build and test their applications. Red Hat announced the release of Dogtail at the 2006 Red Hat Summit. [55][56]\n\n## MRG\n\nRed Hat MRG is a clustering product intended for integrated high-performance computing (HPC). The acronym MRG stands for 'Messaging Realtime Grid '.\n\nRed Hat Enterprise MRG replaces the kernel of Red Hat Enterprise Linux RHEL, a Linux distribution developed by Red Hat, in order to provide extra support for real-time computing, together with middleware support for message brokerage and scheduling workload to local or remote virtual machines, grid computing, and cloud computing. [57]\n\nAs of 2011, Red Hat works with the Condor High-Throughput Computing System community and also provides support for the software. [58]\n\nThe Tuna performance-monitoring tool runs in the MRG environment. [59]\n\n## Opensource.com\n\nRed Hat produces the online publication Opensource.com since January 20, 2010. $^{[60]}$ The site highlights ways opensource principles apply in domains other than software development. The site tracks the application of open-source philosophy to business, education, government, law, health, and life.\n\nThe company originally produced a newsletter called Under the Brim. Wide Open magazine first appeared in March 2004, as a means for Red Hat to share technical content with subscribers on a regular basis. The Under the Brim newsletter and Wide Open magazine merged in November 2004, to become Red Hat Magazine. In January 2010, Red Hat Magazine became Opensource.com. $^{[61]}$ In April 2023 RedHat went through company layoffs and reportedly laid off the team maintaining Opensource.com [62]\n\n## Red Hat Exchange\n\nIn 2007, Red Hat announced that it had reached an agreement with some free software and open-source (FOSS) companies that allowed it to make a distribution portal called Red Hat Exchange, reselling FOSS software with the original branding intact. $^{[63][64]}$ However, by 2010, Red Hat had abandoned the Exchange program to focus their efforts more on their Open Source Channel Alliance which began in April 2009. [65]\n\n## Red Hat Single Sign On\n---------------------\nGiven the context information and not prior knowledge, answer the query.\nQuery: \nAnswer:\n","gen_err":"httpx.ConnectError"}],"retrieval":{"items":[{"doc_hash":"fb53bb607f2e9642d7fe044585d1dcdb052c57febe1b8713aab13b6609a1bd3f","chunk":"PulseAudio\nNetwork-capable sound server program distributed via the freedesktop.org project.","main_path":"main-text.54","path_group":["main-text.53","main-text.54"],"source_is_text":true},{"doc_hash":"fb53bb607f2e9642d7fe044585d1dcdb052c57febe1b8713aab13b6609a1bd3f","chunk":"MRG\nThe Tuna performance-monitoring tool runs in the MRG environment. [59]","main_path":"main-text.61","path_group":["main-text.57","main-text.61"],"source_is_text":true},{"doc_hash":"fb53bb607f2e9642d7fe044585d1dcdb052c57febe1b8713aab13b6609a1bd3f","chunk":"Utilities and tools\nSystemTap-tracing tool for Linux kernels, developed with IBM, Hitachi, Oracle $^{[90]}$ and Intel[91]\nNetworkManager","main_path":"main-text.101","path_group":["main-text.92","main-text.101","main-text.102"],"source_is_text":true}]}},"timings":{"overall":0.605668606236577,"tasks":{"QA":{"overall":0.6052508829161525,"details":{"pipeline":0.08752843365073204,"encode":0.015594463795423508,"search":0.017035305500030518,"rerank":0.0,"extr_gen_ctx":0.04396074637770653,"generate":0.009920526295900345}}}},"progress":0.0,"next_pages":{}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment