Last active
December 31, 2024 23:39
-
-
Save elijahbenizzy/068ac74ae42220015298fa0e1e29001d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Instrumenting OpenTelemetry for LanceDB and OpenAI | |
OpenAIInstrumentor().instrument() | |
LanceInstrumentor().instrument() | |
# Define the application graph | |
app = ( | |
ApplicationBuilder() | |
.with_actions( | |
fetch_webpage=fetch_webpage, | |
embed_and_store=embed_and_store, | |
ask_question=ask_question) | |
.with_transitions( | |
("fetch_webpage", "embed_and_store"), | |
("embed_and_store", "ask_question") | |
) | |
.with_entrypoint("fetch_webpage") | |
.with_tracker(project="chat-webpage-simple-rag", use_otel_tracing=True) | |
.build() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment