gistillery / requests.org
Benjamin Bossan
Add actual code for processing web pages
64d4f97
#+title: Requests
#+begin_src bash
curl -X 'GET' \
'http://localhost:8080/clear/' \
-H 'accept: application/json'
#+end_src
#+RESULTS:
: OK
#+begin_src bash
# curl command to localhost and post the message "hi there"
curl -X 'POST' \
'http://localhost:8080/submit/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"author": "ben",
"content": "SAN FRANCISCO, May 2, 2023 PRNewswire -- GitLab Inc., the most comprehensive, scalable enterprise DevSecOps platform for software innovation, and Google Cloud today announced an extension of its strategic partnership to deliver secure AI offerings to the enterprise. GitLab is trusted by more than 50% of the Fortune 100 to secure and protect their most valuable assets, and leads with a privacy-first approach to AI. By leveraging Google Cloud'\''s customizable foundation models and open generative AI infrastructure, GitLab will provide customers with AI-assisted features directly within the enterprise DevSecOps platform."
}'
#+end_src
#+RESULTS:
: Submitted job 04deee1a2a9b4d6ea986ffe0fa4017d9
#+begin_src bash
curl -X 'POST' \
'http://localhost:8080/submit/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"author": "ben",
"content": "In literature discussing why ChatGPT is able to capture so much of our imagination, I often come across two narratives: Scale: throwing more data and compute at it. UX: moving from a prompt interface to a more natural chat interface. A narrative that is often glossed over in the demo frenzy is the incredible technical creativity that went into making models like ChatGPT work. One such cool idea is RLHF (Reinforcement Learning from Human Feedback): incorporating reinforcement learning and human feedback into NLP. RL has been notoriously difficult to work with, and therefore, mostly confined to gaming and simulated environments like Atari or MuJoCo. Just five years ago, both RL and NLP were progressing pretty much orthogonally – different stacks, different techniques, and different experimentation setups. It’s impressive to see it work in a new domain at a massive scale. So, how exactly does RLHF work? Why does it work? This post will discuss the answers to those questions."
}'
#+end_src
#+RESULTS:
: Submitted job 730352e00e8145b39971fdc386c28a8f
#+begin_src bash
curl -X 'POST' \
'http://localhost:8080/submit/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"author": "ben",
"content": "https://en.wikipedia.org/wiki/Goulburn_Street"
}'
#+end_src
#+RESULTS:
: Submitted job 1738d7daa96147198d80b93ea040863d
#+begin_src bash
curl -X 'GET' \
'http://localhost:8080/check_job_status/1738d7daa96147198d80b93ea040863d' \
-H 'accept: application/json'
#+end_src
#+RESULTS:
| {"id":"1738d7daa96147198d80b93ea040863d" | status:"pending" | last_updated:"2023-05-09T13:24:42"} |
#+begin_src bash
curl -X 'GET' \
'http://localhost:8080/recent/' \
-H 'accept: application/json'
#+end_src
#+RESULTS:
| [{"id":"1738d7daa96147198d80b93ea040863d" | author:"ben" | summary:"Goulburn Street is a street in the central business district of Sydney | New South Wales | Australia. It runs from Darling Harbour and Chinatown in the west to Crown Street in the east at Darlinghurst and Surry Hills. The only car park operated by Sydney City Council within the CBD is at the corner of Goulburn and Elizabeth Streets. It was the first air rights car park in Australia | opening in 1963 over six tracks of the City Circle line.[3][4]" | tags:["#centralbusinessdistrict" | #darlinghurst | #general | #goulburnstreet | #surryhills | #sydney | #sydneymasoniccentre] | date:"2023-05-09T13:24:42"} | {"id":"730352e00e8145b39971fdc386c28a8f" | author:"ben" | summary:"A new approach to NLP that incorporates reinforcement learning and human feedback. How does it work? Why does it work? In this post | I’ll explain how it works. RLHF is a new approach to NLP that incorporates reinforcement learning and human feedback. It’s a new approach to NLP that incorporates reinforcement learning and human feedback. It’s a new approach to NLP that incorporates reinforcement learning and human feedback. It’s a new approach to NLP that incorporates reinforcement learning and human feedback. It’s a new approach to NLP that incorporates reinforcement learning and human feedback." | tags:["#" | #general | #rlhf] | date:"2023-05-09T13:24:38"} | {"id":"04deee1a2a9b4d6ea986ffe0fa4017d9" | author:"ben" | summary:"GitLab | the most comprehensive | scalable enterprise DevSecOps platform for software innovation | and Google Cloud today announced an extension of their strategic partnership to deliver secure AI offerings to the enterprise. By leveraging Google Cloud's customizable foundation models and open generative AI infrastructure | GitLab will provide customers with AI-assisted features directly within the enterprise DevSecOps platform. The company's AI capabilities are designed to help enterprises improve productivity and reduce costs." | tags:["#ai-assistedfeatures" | #enterprisedevsecopsplatform | #general | #gitlab | #googlecloud] | date:"2023-05-09T13:24:36"}] |