embedchain/notebooks/gpt4all.ipynb
!pip install embedchain[opensource]
GPT4All is free for all and doesn't require any API Key to use it. So you can use it for free!
from embedchain import App
app = App.from_config(config={
"llm": {
"provider": "gpt4all",
"config": {
"model": "orca-mini-3b-gguf2-q4_0.gguf",
"temperature": 0.5,
"max_tokens": 1000,
"top_p": 1,
"stream": False
}
},
"embedder": {
"provider": "gpt4all",
"config": {
"model": "all-MiniLM-L6-v2"
}
}
})
app.add("https://www.forbes.com/profile/elon-musk")
while(True):
question = input("Enter question: ")
if question in ['q', 'exit', 'quit']:
break
answer = app.query(question)
print(answer)