Skip to content

Commit abbb309

Browse files
Rest API Notebook Draft (#14)
--------- Co-authored-by: William Fu-Hinthorn <[email protected]>
1 parent 9163e80 commit abbb309

File tree

10 files changed

+768
-0
lines changed

10 files changed

+768
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ The following walkthroughs demonstrate ways to evaluate common application scena
3030

3131
Setting up tracing in LangChain is as simple as setting a couple environment variables. We've also added support through the LangSmith SDK to trace applications that don't rely on LangChain. The following walkthroughs address common questions around tracing your code!
3232
- The [Tracing without LangChain](./tracing-examples/traceable/tracing_without_langchain.ipynb) notebook uses the Python SDK's `@traceable` decorator to trace and tag run in an app that does not use depend on LangChain.
33+
- The [REST API](./tracing-examples/rest/rest.ipynb) notebook walks through logging runs to LangSmith directly using the REST API, covering how to log LLM and chat model runs for token counting, and how to nest runs. The run logging spec can be found in the [LangSmith SDK repository](https://github.com/langchain-ai/langsmith-sdk/blob/main/openapi/openapi.yaml).

tracing-examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
Setting up tracing in LangChain is as simple as setting a couple environment variables. We've also added support through the LangSmith SDK to trace applications that don't rely on LangChain. The following walkthroughs address common questions around tracing your code!
44
- The [Tracing without LangChain](./traceable/tracing_without_langchain.ipynb) notebook uses the python SDK's `@traceable` decorator to trace and tag run in an app that does not use depend on LangChain.
5+
- The [REST API](./tracing-examples/rest/rest.ipynb) notebook walks through logging runs to LangSmith directly using the REST API, covering how to log LLM and chat model runs for token counting, and how to nest runs. The run logging spec can be found in the [LangSmith SDK repository](https://github.com/langchain-ai/langsmith-sdk/blob/main/openapi/openapi.yaml).
707 KB
Loading
Loading
745 KB
Loading

tracing-examples/rest/img/minimal.png

597 KB
Loading
630 KB
Loading
Loading
674 KB
Loading

tracing-examples/rest/rest.ipynb

Lines changed: 766 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)