Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch/decruft openapi json #1338

Merged
merged 4 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
Loading