-
Notifications
You must be signed in to change notification settings - Fork 813
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
Question for open api key #1860
Comments
Hi @jinsoo96, Yes, you can. For more details, check our documentation here: Ragas Docs. Alternatively, you can use Langchain to use any model of your choice. |
Thank you for your response! However, I understand that using the langchainWrapper feature in ragas, and later generating test sets, requires an OpenAI API key based on my review of ragas' source code. |
hey @jinsoo96 you might be still using the default LLM or embedding somewhere - did you check out the indepth guide https://docs.ragas.io/en/stable/getstarted/rag_testset_generation/#a-deeper-look. You just have to figure out where you are using the default LLMs and then replace that |
The issue is that I cannot import various functions like ragas langchainLLMWrapper in my current cloud development environment due to OpenAI API key transmission errors in the source code. If I want to modify the source code directly (hardcode), which parts should I modify and would this approach be acceptable? The main concern is finding a way to use these ragas features without relying on the OpenAI API key requirement, either through source code modification or alternative methods. What would be the best approach to solve this problem? |
see @jinsoo96 that should not be an issue because we did make sure a while back that ragas works without OpenAI - but maybe this is a bug that has happended too could you share the code snippets you are trying to run? I'll check this out in detail |
I'll check my environment settings again and verify if there are any bugs. Thank you for your thorough responses and helpful answers. Have a great day! :) |
you too - hope you get this sorted 🙂 |
[ ] I checked the documentation and related resources and couldn't find an answer to my question.
I have a question. In my current environment, I cannot use OpenAI API keys. Is there a way to use Ragas with different LLM APIs without using OpenAI API keys?
The text was updated successfully, but these errors were encountered: