-
-
Notifications
You must be signed in to change notification settings - Fork 439
Annotations #847
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
base: main
Are you sure you want to change the base?
Annotations #847
Conversation
Refs #716 - describes a yield llm.Chunk() mechanism that does not yet exist.
I hope I got that type stuff right in 2ce2510 - which cover what happens when you do |
Idea: I could have this model class live in the |
I have that import llm
from llm.examples import Markov, AnnotationsModel, AnnotationsModelAsync
@llm.hookimpl
def register_models(register):
register(Markov())
register(AnnotationsModel(), AnnotationsModelAsync()) Can't package and ship it until I have at least an alpha with |
Also printing those out in streaming mode for non-async models, as a debug thing
!stable-docs
TODO:
execute()
plugin authors (which is not yet implemented yet).execute()
methods that yieldChunk
in addition tostr
Response.chunks()
method described here for Python API, with docsllm prompt
should display annotations correctly as they are yielded by the new.execute()
methodllm logs
- previous prototype is here.llm-openai-plugin
to use annotations forweb_search
toolllm-anthropic
plugin to use annotations for Claude citations