Replies: 3 comments
-
I have not seen explicit support for gpt4free, but there seem to be instructions here on how to use the hope that's helpful |
Beta Was this translation helpful? Give feedback.
-
🤖 Hello, To link LlamaIndex with gpt4free, you can use the Here is an example of how you might use it: from llama_index.embeddings import InstructorEmbedding
instructor_embedding = InstructorEmbedding(model_name='gpt4free')
query_embedding = instructor_embedding._get_query_embedding('my query')
text_embedding = instructor_embedding._get_text_embedding('my text') In this example, an instance of Please note that you'll need to replace You can find more information about the If you have any other questions or need further clarification, feel free to ask. Best regards. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
I got g4f working with llamaindex for queries (not generating embeddings): https://gist.github.com/brycepg/bab4fd81ae1c93660754746c8ffb4d01 Save as Then in your code import it and set it as your llm
Configure g4f model with
|
Beta Was this translation helpful? Give feedback.
-
Question Validation
Question
How do I link llama-index to gpt4free?
Beta Was this translation helpful? Give feedback.
All reactions