Skip to content

Commit

Permalink
Add spec changes
Browse files Browse the repository at this point in the history
Co-authored-by: billytrend-cohere <[email protected]>
  • Loading branch information
platform-endpoints and billytrend-cohere committed Aug 21, 2024
1 parent 6925e9e commit d6c566b
Show file tree
Hide file tree
Showing 25 changed files with 10,867 additions and 0 deletions.
6,601 changes: 6,601 additions & 0 deletions cohere-openapi.yaml

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions snippets/snippets/requests/chat-post/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
chat_history:
- role: USER
message: Who discovered gravity?
- role: CHATBOT
message: The man who is widely credited with discovering gravity is Sir Isaac Newton
message: What year was he born?
connectors:
- id: web-search
stream: false
52 changes: 52 additions & 0 deletions snippets/snippets/requests/chat-post/documents.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
message: "Who is more popular: Nsync or Backstreet Boys?"
documents:
- title: "CSPC: Backstreet Boys Popularity Analysis - ChartMasters"
snippet: >-
↓ Skip to Main Content
Music industry – One step closer to being accurate
CSPC: Backstreet Boys Popularity Analysis
Hernán Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band
At one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.
It is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak.
- title: "CSPC: NSYNC Popularity Analysis - ChartMasters"
snippet: >-
↓ Skip to Main Content
Music industry – One step closer to being accurate
CSPC: NSYNC Popularity Analysis
MJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync
At the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven’t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.
It wasn’t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold.
- title: "CSPC: Backstreet Boys Popularity Analysis - ChartMasters"
snippet: >-2
1997, 1998, 2000 and 2001 also rank amongst some of the very best years.
Yet the way many music consumers – especially teenagers and young women’s – embraced their output deserves its own chapter. If Jonas Brothers and more recently One Direction reached a great level of popularity during the past decade, the type of success achieved by Backstreet Boys is in a completely different level as they really dominated the business for a few years all over the world, including in some countries that were traditionally hard to penetrate for Western artists.
We will try to analyze the extent of that hegemony with this new article with final results which will more than surprise many readers.
- title: "CSPC: NSYNC Popularity Analysis - ChartMasters"
snippet: >-2
Was the teen group led by Justin Timberlake really that big? Was it only in the US where they found success? Or were they a global phenomenon?
As usual, I’ll be using the Commensurate Sales to Popularity Concept in order to relevantly gauge their results. This concept will not only bring you sales information for all NSYNC‘s albums, physical and download singles, as well as audio and video streaming, but it will also determine their true popularity. If you are not yet familiar with the CSPC method, the next page explains it with a short video. I fully recommend watching the video before getting into the sales figures.
stream: false
2 changes: 2 additions & 0 deletions snippets/snippets/requests/chat-post/stream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
message: hello world!
stream: true
21 changes: 21 additions & 0 deletions snippets/snippets/requests/chat-post/tools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
message: Can you provide a sales summary for 29th September 2023, and also give
me some details about the products in the 'Electronics' category, for example
their prices and stock levels?
tools:
- name: query_daily_sales_report
description: Connects to a database to retrieve overall sales volumes and sales
information for a given day.
parameter_definitions:
day:
description: Retrieves sales data for this day, formatted as YYYY-MM-DD.
type: str
required: true
- name: query_product_catalog
description: Connects to a a product catalog with information about all the
products being sold, including categories, prices, and stock levels.
parameter_definitions:
category:
description: Retrieves product information data for all products in this category.
type: str
required: true
stream: false
24 changes: 24 additions & 0 deletions snippets/snippets/requests/classify-post.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
examples:
- text: Dermatologists don't like her!
label: Spam
- text: "'Hello, open to this?'"
label: Spam
- text: I need help please wire me $1000 right now
label: Spam
- text: Nice to know you ;)
label: Spam
- text: Please help me?
label: Spam
- text: Your parcel will be delivered today
label: Not spam
- text: Review changes to our Terms and Conditions
label: Not spam
- text: Weekly sync notes
label: Not spam
- text: "'Re: Follow up from today's meeting'"
label: Not spam
- text: Pre-read for tomorrow
label: Not spam
inputs:
- Confirm your email address
- hey i need u to send some $
3 changes: 3 additions & 0 deletions snippets/snippets/requests/connector-create.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: test-connector
url: https://example.com/search
description: A test connector
8 changes: 8 additions & 0 deletions snippets/snippets/requests/detokenize-post.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tokens:
- 10002
- 2261
- 2012
- 8
- 2792
- 43
model: command
3 changes: 3 additions & 0 deletions snippets/snippets/requests/embed-jobs-post.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dataset_id: my-dataset
input_type: search_document
model: embed-english-v3.0
5 changes: 5 additions & 0 deletions snippets/snippets/requests/embed-post.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
texts:
- hello
- goodbye
model: embed-english-v3.0
input_type: classification
2 changes: 2 additions & 0 deletions snippets/snippets/requests/generate-post.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
prompt: Please explain to me how LLMs work
stream: false
16 changes: 16 additions & 0 deletions snippets/snippets/requests/rerank-post.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
documents:
- text: Carson City is the capital city of the American state of Nevada.
- text: The Commonwealth of the Northern Mariana Islands is a group of islands in
the Pacific Ocean. Its capital is Saipan.
- text: Capitalization or capitalisation in English grammar is the use of a
capital letter at the start of a word. English usage varies from
capitalization in other languages.
- text: Washington, D.C. (also known as simply Washington or D.C., and officially
as the District of Columbia) is the capital of the United States. It is a
federal district.
- text: Capital punishment (the death penalty) has existed in the United States
since beforethe United States was a country. As of 2017, capital
punishment is legal in 30 of the 50 states.
query: What is the capital of the United States?
top_n: 3
model: rerank-english-v3.0
23 changes: 23 additions & 0 deletions snippets/snippets/requests/summarize-post.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
text: "Ice cream is a sweetened frozen food typically eaten as a snack or
dessert. It may be made from milk or cream and is flavoured with a sweetener,
either sugar or an alternative, and a spice, such as cocoa or vanilla, or with
fruit such as strawberries or peaches. It can also be made by whisking a
flavored cream base and liquid nitrogen together. Food coloring is sometimes
added, in addition to stabilizers. The mixture is cooled below the freezing
point of water and stirred to incorporate air spaces and to prevent detectable
ice crystals from forming. The result is a smooth, semi-solid foam that is
solid at very low temperatures (below 2 °C or 35 °F). It becomes more
malleable as its temperature increases.
The meaning of the name \"ice cream\" varies from one country to another. In
some countries, such as the United States, \"ice cream\" applies only to a
specific variety, and most governments regulate the commercial use of the
various terms according to the relative quantities of the main ingredients,
notably the amount of cream. Products that do not meet the criteria to be
called ice cream are sometimes labelled \"frozen dairy dessert\" instead. In
other countries, such as Italy and Argentina, one word is used fo\r all
variants. Analogues made from dairy alternatives, such as goat's or sheep's
milk, or milk substitutes (e.g., soy, cashew, coconut, almond milk or tofu),
are available for those who are lactose intolerant, allergic to dairy protein
or vegan."
2 changes: 2 additions & 0 deletions snippets/snippets/requests/tokenize-post.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
text: tokenize me! :D
model: command
Loading

0 comments on commit d6c566b

Please sign in to comment.