Giter Club home page Giter Club logo

gpt4all_langchain_chatbots's Introduction

A few different ways of using GPT4All stand alone and with LangChain.

gpt4all_langchain_chatbots's People

Contributors

wombyz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gpt4all_langchain_chatbots's Issues

failed to load model of ggml-model-q4_0.bin

I am getting the following error and trying to fix it but no luck on that.

is there any way to fix this? or any alternative bin we can use?

llama_model_load: invalid model file './models/ggml-model-q4_0.bin' (too old, regenerate your model files or convert them with convert-unversioned-ggml-to-ggml.py!)
llama_init_from_file: failed to load model

Please write a complete readme.mq file

When you try to create an open project for the community, don't just push that project up. Try a little more to write a complete readme.md file, this file plays a very important role when anyone clicks on your project. They will find a description of the project, how to run the project, and even how the project works. So try to complete a full readme file so that people who learn about your project don't have to read your code.

gpt

Bonjour
j'utilise ce code sur visuel studio
""from nomic.gpt4all import GPT4All
m = GPT4All()
m.open()
m.prompt('write me a story about a lonely computer')"""
et voila le message d'erreur que j'ai """ importe (nomic.gpt4all) could not be resolved
can u help me pleaase

Could not load Llama model from path:

I'm getting this error when running the custom_knowledge_query.py:
llama.cpp: loading model from /Users/XXX/Perso/chatchpt/XX/models/ggml-model-q4_0.bin
error loading model: unexpectedly reached end of file
llama_init_from_file: failed to load model
Traceback (most recent call last):
File "/Users/XXX/Perso/chatchpt/XXX/custom_knowledge_query.py", line 24, in
embeddings = LlamaCppEmbeddings(model_path=llama_path)
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for LlamaCppEmbeddings
root
Could not load Llama model from path: /Users/XXX/Perso/chatchpt/XXX/models/ggml-model-q4_0.bin. Received error (type=value_error)
I checked that the model exist

Unable to use gpt4all model

Hi Team,

I am getting below error while trying to use the gpt4all model, Can someone please advice ?

Error:

  File "/home/ubuntu/.local/share/virtualenvs/local-conversational-ai-chatbot-using-gpt4-6TvxabtR/lib/python3.10/site-packages/langchain/llms/gpt4all.py", line 181, in _call
    text = self.client.generate(
TypeError: Model.generate() got an unexpected keyword argument 'new_text_callback'

Code:

from langchain import PromptTemplate, LLMChain
from langchain.llms import GPT4All
from langchain.callbacks.base import CallbackManager
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler

template = """Question: {question}

Answer: Let's think step by step."""

prompt = PromptTemplate(template=template, input_variables=["question"])

local_path = './models/ggjt-model.bin'

# Callbacks support token-wise streaming
callback_manager = CallbackManager([StreamingStdOutCallbackHandler()])
# Verbose is required to pass to the callback manager
llm = GPT4All(model=local_path, callback_manager=callback_manager, verbose=True)

llm_chain = LLMChain(prompt=prompt, llm=llm)

question = "What NFL team won the Super Bowl in the year Justin Bieber was born?"

llm_chain.run(question)

ModuleNotFoundError: No module named 'nomic'

I get this error while running the nomic file every time

Error

Traceback (most recent call last):
File "/home/ubuntu/ai_x/gpt4all_langchain_chatbots/nomic_setup.py", line 3, in
m.open()
File "/home/ubuntu/.local/lib/python3.10/site-packages/nomic/gpt4all/gpt4all.py", line 96, in open
self.bot = subprocess.Popen(creation_args,
File "/usr/lib/python3.10/subprocess.py", line 969, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: PosixPath('/home/ubuntu/.nomic/gpt4all')

can anyone help me with this error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.