-
Notifications
You must be signed in to change notification settings - Fork 768
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
[R-313] Adding more LLM/Embedding Providers #1617
Comments
If the output of my model is obtained through a method call, for example, def query_model(query): return response. Then how should I write the code to load the model? In addition, the Embedding model is also generated through a similar method call, providing methods for converting words into vectors and comparing vector similarities. |
hey @kent-william007, in that case you will have to implement Lines 64 to 83 in 1e7121b
on your own and make sure make sure that the result is of the type https://python.langchain.com/api_reference/core/outputs/langchain_core.outputs.llm_result.LLMResult.html similarly for https://github.com/explodinggradients/ragas/blob/main/src/ragas/embeddings/base.py let me know if you have further doubts, we'll help you out 🙂 btw are you on discord? |
Is it possible to support model invocation through an API? This way, we can leverage the model capabilities provided by the server without needing to worry about which underlying model is being used. |
Trying to use Ragas with Google's Gemini models always gives me some headache. Whether I'm Evaluating Using Metrics or trying to Generate Synthetic Testset for RAG I keep getting errors such as Same result with different models e.g. I just commented on #1573 about getting the same thing. Gemini support, please. |
@matheusft could you check this PR and docs: #1728 this should help you. let me know if it solves your issue or I'll look further into it |
It does not work for me as I'm now getting
|
i get this error
|
wrapped classes are only intended to be used inside Ragas, it is recommended to not use it anywhere else |
So would you have any suggestion on how to use Ragas with Gemini and Langchain that actually works? |
hey @matheusft let me check this and get back to you. We had a community PR that should have helped fix this but I think that didn't solve the issue your facing? let me setup the google gemini workflow and get back to you by today 🙂 |
Does anyone know how else on can evaluate a rag system without ragas? |
hey @matheusft could you check this PR out: #1759 I've tested it on my end with gemini but do give it a go? I'll merge it after that 🙂 |
Fantastic! Thanks in advance. |
A running issue to get feedback on which LLM or Embedding Providers we need to add for you
R-313
The text was updated successfully, but these errors were encountered: