mallahyari / drqa

How to create Question-Answering system combining Langchain and OpenAI
171 stars 28 forks source link

OSS instead of OPenAI? #2

Closed vahuja4 closed 1 year ago

vahuja4 commented 1 year ago

Is it possible to replace OpenAI with some open source model like Flan.

mallahyari commented 1 year ago

Yes, you can use any open source model from HuggingFace or other sources. However, the model should be able to generate text as a response. You can take a look here at langchain documentation, they support other LLMs: https://python.langchain.com/en/latest/modules/models/llms/integrations.html