21 Replies
@Luke Skywalker
what's your use case for metadata?
would tags or metadata on chains/agents be helpful?
From Langchain Base Chain
Use case is person identification and personal data extraction from document datasets. I put tags on chain already.
if the tags show up in metadata, would this be helpful?
(langfuse) metadata
well htey do, but I would love to be able to filter through them in the ui.
basically tags contains xyz
makes sense
not P0 right now but might get to it over the next days
can you raise an issue for this?
https://github.com/langfuse/langfuse/issues
GitHub
Issues · langfuse/langfuse
Open source observability and analytics for LLM applications - Issues · langfuse/langfuse
for adding metadata to new spans?
Oh got it
Have you tried the langchain metadata instead of the tags?
metadata: Optional[Dict[str, Any]] = None
"""Optional metadata associated with the chain. Defaults to None.
This metadata will be associated with each call to this chain,
and passed as arguments to the handlers defined in
callbacks
.
You can use these to eg identify a specific instance of a chain with its use case.GitHub
feat: Add metadata to manually created spans / observations · Issue...
Describe the feature you'd like to request Would love to be able to set metadata fields on manually created spans: Describe the solution you'd like to see langfusehandler.setNextSpan(next...
ui no, lets see
do you use langchain metadata already?
the callback handler should merge tags and metadata into metadata in langfuse
https://github.com/langfuse/langfuse-python/blob/752c1937006d3a5cfef93b21617d9164bbc825db/langfuse/callback.py#L545
GitHub
langfuse-python/langfuse/callback.py at 752c1937006d3a5cfef93b21617...
Langfuse Python SDK. Contribute to langfuse/langfuse-python development by creating an account on GitHub.
nope only tags.
Like this?
and then you can use the filter in the Langfuse UI to select by e.g. extract_model = "extract_data_default"