Skip to main content

All Questions

Tagged with
1 vote
1 answer
464 views

Is there any flag to stop langgraph for further executing?

I want to create a interviewing bot that may ask 5 questions. The questions are specified in the system prompt. I just want the langgraph to stop execution when 5 certain questions are asked. I tried ...
Abdullah Nadeem's user avatar
1 vote
0 answers
159 views

AttributeError: 'Tensor' object has no attribute 'embed_documents'

I have uploaded PDF file and split file into chunks, then apply tokenizer to each chunck and created embeddings. But when i try to store my embedding in FIASS, it give me AttributeError: 'Tensor' ...
Shaista Habib's user avatar
0 votes
0 answers
61 views

Understanding examples of Custom NER using spaCy

I am wanting to create my own custom Named Entity Recognition using spaCy. Whilst I understand the principles of the process and that I need 50-100 examples to train the model. What I am struggling to ...
SD449's user avatar
  • 107
-1 votes
2 answers
2k views

Training a LLM to execute functions

I want develop a chatbot that is able to perform actions and answer questions in a given Smart Home environment. I am curious how to do this with an LLM. How can I customize/train a model to execute ...
Leon B's user avatar
  • 11
0 votes
2 answers
421 views

ChatBot langchain, set memory+retriever+map_reduce

I am new on this topics.I'd like to get a chain that allows me to use a retriever ,a memory and to set the chain_type = 'map_reduce'.In addition to that I'd like to know if is it possible to use the ...
tpaus's user avatar
  • 1
1 vote
0 answers
902 views

Langchain Schema + langchain_openai errors (one resulting after completing the other)

I'm trying to do the following simple code: from langchain.schema import HumanMessage, SystemMessage from langchain_openai import ChatOpenAI 1] If I use it just after installing langchain and ...
Dolev Mitz's user avatar
0 votes
2 answers
298 views

Create a multilingual chatbot

I created a chatbot using PyTorch an I want to make it support the French language. Note that I want to train the chatbot so that it can respond to technical questions. One of the things that came to ...
Amine's user avatar
  • 1
0 votes
0 answers
266 views

Couldn't load PUNKT from NLTK

I couldn't load the punkt module from the nltk library in my Jupyter Notebook. An Error occured when I tried to import 'punkt' as: "Error loading punkt: <urlopen error [WinError 10060] A ...
Apurv Mishra's user avatar
0 votes
0 answers
86 views

Bert_Arch has no attribute predict error while loading pretrained model in Gradio

I am making a voice assistant for fast food restaurants. I have trained my model on Multi-Class Intent Classification on Distil-BERT and saved the file in pickle format in Jupyter. Now when I am ...
Isha 's user avatar
1 vote
1 answer
74 views

AIML chatbot not learning from aiml file

I am making a voice-assistant for food ordering in fast-food restaurants. For dialog management tasks I am making aiml chatbot. This is my std-startup.xml code ''' <!-- Category is an atomic AIML ...
REVA's user avatar
  • 47
6 votes
2 answers
8k views

AttributeError: module 'chromadb' has no attribute 'config'

so i recently started to work on chromabd and i am facing this error: "module 'chromadb' has no attribute 'config'" here is my code: from langchain.vectorstores import Chroma from ...
Fahad Ali Yousaf's user avatar
2 votes
1 answer
683 views

How can I optimize my OpenAI-based chatbot's NLP processing time in Python?

I ran the following code which is based on Langchain and Chroma and it is supposed to be functioning in a production environment with users as a client facing chat bot so I expect it or maybe I should ...
Yishai Rasowsky's user avatar
1 vote
0 answers
514 views

Why does my code using Langchain with Pinecone take a full minute to generate an answer?

Using Langchain with Pinecone, why does it take me a full minute to generate an answer using the following code? def answer_with_pinecone(query, documents, embeddings): pinecone.init(api_key=os....
Yishai Rasowsky's user avatar
37 votes
7 answers
33k views

import langchain => Error : TypeError: issubclass() arg 1 must be a class

I want to use langchain for my project. so I installed it using following command : pip install langchain but While importing "langchain" I am facing following Error: File /usr/lib/python3.8/...
M. D. P's user avatar
  • 764
0 votes
1 answer
391 views

Creating RASA Chatbot with some specific conditions

I want to create a chatbot where, I have a branch of questions and answers like, Q1. How are you A1. - Fine. - Good. Q2. Do you like travelling? A2 - Yes - Absolutely - I like it. Q3. Did ...
Ahmed's user avatar
  • 84

15 30 50 per page
1
2 3 4 5