Closed simplexityware closed 6 days ago
@simplexityware use
dspy.GroqLM(model="llama-3.1-70b-versatile", api_key = GROQ_API_KEY)
Requirements :- pip install groq
codebase link for GroqLM :- GroqLM
below is the screenshot of GroqLM class for reference
fixed by recent PR, thanks @hacker-4-good
@simplexityware use
dspy.GroqLM(model="llama-3.1-70b-versatile", api_key = GROQ_API_KEY)
Requirements :-
pip install groq
codebase link for GroqLM :- GroqLM
below is the screenshot of GroqLM class for reference
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-2-03daf97e6575>](https://localhost:8080/#) in <cell line: 12>()
10 # )
11
---> 12 llm = dspy.GroqLM(model="llama-3.1-70b-versatile", api_key = GROQ_API_KEY )
13 dspy.settings.configure(lm=llm)
AttributeError: module 'dspy' has no attribute 'GroqLM'
according to https://dspy-docs.vercel.app/api/language_model_clients/Groq
I am really keen to complete this tutorial using the free GROQ/LLama3 service in the cloud - https://github.com/stanfordnlp/dspy/blob/main/examples/llamaindex/dspy_llamaindex_rag.ipynb - to use as a reference for other projects involving the use of DSPy and LlamaIndex.
Thank you for your kind attention.