Skip to content
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
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"cliVersion": "3.86.0",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "4.59.0",
"generatorVersion": "4.59.4",
"generatorConfig": {
"client_class_name": "Captain"
},
"sdkVersion": "0.0.0"
"sdkVersion": "0.0.1"
}
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ Instantiate and use the client with the following:
from runcaptain import Captain

client = Captain(
authorization="YOUR_AUTHORIZATION",
organization_id="YOUR_ORGANIZATION_ID",
key="YOUR_KEY",
)
client.query.collection_v2(
collection_name="my_documents",
query="What are the key terms in the contract?",
inference=True,
stream=True,
rerank=True,
top_k=10,
)
```

Expand All @@ -59,8 +60,8 @@ import asyncio
from runcaptain import AsyncCaptain

client = AsyncCaptain(
authorization="YOUR_AUTHORIZATION",
organization_id="YOUR_ORGANIZATION_ID",
key="YOUR_KEY",
)


Expand All @@ -71,6 +72,7 @@ async def main() -> None:
inference=True,
stream=True,
rerank=True,
top_k=10,
)


Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "captain-sdk"
version = "0.0.0"
version = "0.0.1"
description = ""
readme = "README.md"
authors = []
Expand Down
Loading