Skip to content

Commit

Permalink
Patch/decruft openapi json (#1338)
Browse files Browse the repository at this point in the history
* update api spec

* decruft

* decruft
  • Loading branch information
emrgnt-cmplxty authored Oct 4, 2024
1 parent 2beb6dd commit df2ad6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/openapi.json

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions py/core/main/api/data/ingestion_router_openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ingest_chunks:
source: |
from r2r import R2RClient
client = R2RClient("http://localhost:7272")
client = R2RClient("http://localhost:7272")
# when using auth, do client.login(...)
result = client.ingest_chunks(
Expand All @@ -76,12 +76,13 @@ ingest_chunks:
"text": "Another chunk of text",
},
{
"text": "Yet another chunk of text",
"text": "Yet another chunk of text",
},
{
"text": "A chunk of text",
},
], )
],
)
- lang: Shell
source: |
curl -X POST "https://api.example.com/ingest_chunks" \
Expand All @@ -96,7 +97,7 @@ ingest_chunks:
"text": "Yet another chunk of text"
},
{
"text": "A chunk of text"
"text": "A chunk of text"
}
],
"document_id": "b4ac4dd6-5f27-596e-a55b-7cf242ca30aa",
Expand All @@ -106,4 +107,4 @@ ingest_chunks:
input_descriptions:
chunks: "A list of text chunks to ingest into the system."
document_id: "An optional document id to associate the chunks with. If not provided, a unique document id will be generated."
metadata: "Optional JSON metadata to associate with the ingested chunks."
metadata: "Optional JSON metadata to associate with the ingested chunks."

0 comments on commit df2ad6c

Please sign in to comment.