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

How to connect an LLM that is not on the supported list #856

Open
ferdyhong opened this issue Nov 21, 2024 · 5 comments
Open

How to connect an LLM that is not on the supported list #856

ferdyhong opened this issue Nov 21, 2024 · 5 comments

Comments

@ferdyhong
Copy link

We are using a private LLM, such as OpenAI or Gemini, which is not supported by the Unstract.
To use this private LLM, various parameters like a jwt token, a subscription key, and an endpoint address are required.

We would like to test connecting this private LLM to the Unstract open-source version.
Could you advise if this is possible?

@gaya3-zipstack
Copy link
Contributor

gaya3-zipstack commented Dec 4, 2024

Hello @ferdyhong . Thank you for reaching out to us. Apologies for the delayed reply. I would like to understand the problem better. When you say you have a private LLM, do you mean that you have an in-house built LLM or is it something that is available publicly like OpenAI or Gemini?

@ferdyhong
Copy link
Author

ferdyhong commented Dec 4, 2024

Hi, @gaya3-zipstack
It's a bit complex, but it refers to OpenAI set up in a private cloud environment. My company has purchased OpenAI and configured it in a private cloud environment.
So, it has a request structure similar to OpenAI, but with additional elements like JWT tokens incorporated.

@gaya3-zipstack
Copy link
Contributor

gaya3-zipstack commented Dec 4, 2024

Oh, I see. So does this mean that only the connection/configuration parameters are different?
Internaly, unstract uses llama-index APIs for talking to the LLM at various points. Would like to understandwhether you have been using OpenAI client library directly or any other libs like llama-inde for your developemt so far...

@gaya3-zipstack
Copy link
Contributor

Please check if this is useful and can be applied to your use-case
https://docs.unstract.com/unstract/contributing/unstract/sdk/contribute-adapter/

Please check out the section - "Things to keep in mind"

@ferdyhong
Copy link
Author

Hi, @gaya3-zipstack
I just realized you replied, sorry about that.
Do you mean I should modify the Python file using the LlamaIndex approach to fit my environment?

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

2 participants