-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
is there any notebook example that works ? (all those I tried are obsolete) #526
Comments
@wiiiktor : are you aware of any other alternatives ? |
I started using guidance after 1.0 release :) and have no clue about anything that worked earlier, sorry... |
@slundberg : Do you have an idea of when will this be released ? also tagging @Harsha-Nori if you have any comments please |
no idea, srry... |
Hey @younes-io, we're working through the notebooks and updating them slowly, but apologies for many of them still being out of date. The best source of documentation at the moment is our README (and we could also use help updating the notebooks if anyone is looking to make PRs!). Perhaps we could shift all the old notebooks into a clearly marked folder to prevent this confusion while we transition the notebooks over? What do you think? For getting pre-release code, you can install from source on main by cloning the repo and running: from the repo root. We'll push out a proper PyPI update in the near future but hope this helps in the short term |
Hi @Harsha-Nori , |
These ones use the new version, but none use Azure: tutorial.ipynb, chat_with_search.ipynb, code generation. |
Courtesy of @riedgar-ms we do have one Azure one: https://github.com/guidance-ai/guidance/blob/main/notebooks/tutorial_azureai_openai.ipynb And I second the apologies about out of date notebooks. We planned to update them faster, and hesitated to rename ones that would break external links. |
@slundberg : I think this is the new link : https://github.com/guidance-ai/guidance/blob/main/notebooks/api_examples/models/AzureOpenAI.ipynb I'll test it and let you know :) Thank you |
I added this PR #583 to expose the from guidance import models, gen
import tiktoken
azureai_model = models.AzureOpenAI(
model='gpt-3.5-turbo',
azure_endpoint=azure_endpoint,
azure_deployment='my_crazy_deployment_name',
api_key=api_key,
) |
We have updated lots of notebooks so hopefully this is not a big issue anymore. Closing for now, feel free to flag more. |
The bug
I spent hours for days trying to make one single example on guidance work... (Im using Azure OpenAI API), and I can't manage to do that.. I got a few errors, but the main reason it's failing is because most of these notebooks are obsolete unfortunately..
If
guidance
re-invents its API & its modules every release, then maybe its better to have those notebooks / examples associated with theguidance
version that was used to test them.. I have taken at least 5 examples, and none of them works.. it's really unproductive :/The text was updated successfully, but these errors were encountered: