Skip to content
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

Code and article need reviewed #2

Open
ScottS2017 opened this issue Jun 10, 2024 · 0 comments
Open

Code and article need reviewed #2

ScottS2017 opened this issue Jun 10, 2024 · 0 comments

Comments

@ScottS2017
Copy link

ScottS2017 commented Jun 10, 2024

There are many things that need worked on with this:

  • There are many backslashes don't belong and cause errors.
  • There are many misspellings are easily shown by the IDE.
  • There is not enough information about how to use the URL from Neon to get the parts needed for the .env file.
  • homepage.dart line 102: "valueListenable: queryNotifierProvider.messageState," is wrong. You refactored QueryNotifier so that messageState doesn't exist anymore. I believe you may have changed it to queryAndResponseState, since this fixes the error.
  • OpenAI doesn't allow embeddings to be generated by the babbage-002 model anymore. The model used in getQueryEnbeddings needs to be text-embedding-3-large, text-embedding-3-small, or text-embedding-ada-002
  • After fixing all of this, the very first time I tried to use the app I got an error from OpenAI: "You exceeded your current quota, please check your plan and billing details...". What kind of account do we need to run this?
  • This whole tutorial might be better off being refactored to use Gemini now, especially considering the quota issue.

I posted all of this as a comment but apparently comments are either broken or turned off. I imagine that if comments were working you would have found out about all of this months ago. Sorry if this comes off as salty but I just lost a day and, though I did learn some things, I never did get the app to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant