Questions tagged [nlp-question-answering]

Question Answering is the computer task of mechanically answering questions posed in natural language. (Please do not use this tag to indicate that you have a question and want an answer. That's already implied.)

For more information, see: https://en.wikipedia.org/wiki/Question_answering

243 questions
2
votes
1 answer

How to Convert NLP Question to Knowledge Graph triple?

I have what I think is a simple question. I am trying to put together a question answering system and I am having trouble converting a natural question to a knowledge graph triple. Here is an example of what I mean: Assume I have a prebuilt…
2
votes
0 answers

How to get answers to natural language questions from freebase?

I have massive amounts of natural language questions in the format of "Subject-entity [tab] relationship [tab] Object-entity [tab] question" as follows: www.freebase.com/m/01jp8ww www.freebase.com/music/album/genre www.freebase.com/m/01qzt1 …
randy newfield
  • 1,221
  • 3
  • 25
  • 38
2
votes
0 answers

LIBSVM data fomat for categorical data

I am doing project on question classification using SVM. Given a question, the system must be able to allocate the class to question. For eg for the question “Where is Tajmahal located?” the task of question classification is to assign label…
2
votes
1 answer

How can I build a qa system to answer yes or no

I would like to build a question answering system that it can answer only yes or no . Suppose that I have got a question and a text file . In the text file , there are 4-5 snippets . With these snippets i could answer the question . So , I would…
2
votes
1 answer

how to get short natural answers from internet?

Does it exists a version from google or wikipedia or other servers offering short answers to you questions? I'm coding an assistant like Siri and I'd like to be able to ask him who is the president of the united states and get something like: Barak…
javirs
  • 1,049
  • 26
  • 52
1
vote
2 answers

Getting an error when trying to use ChromaDB

I am new to LangChain and I was trying to implement a simple Q & A system based on an example tutorial online. The code is as follows: from langchain.llms import LlamaCpp from langchain.llms import gpt4all from langchain.embeddings import…
adhok
  • 391
  • 2
  • 16
1
vote
1 answer

Relationship between embedding models and LLM's inference models in a RAG architecture

I am trying to implement a RAG architecture in AWS with documents that are in Spanish. My question is the following: does it matter if I generate the embeddings of the documents with a model trained in English or multilingual? Or do I have to…
1
vote
1 answer

Retrieving the page number from the document in question-answering task [LangChain]

I am building a question-answer app using LangChain. Following the numerous tutorials on web, I was not able to come across of extracting the page number of the relevant answer that is being generated given the fact that I have split the texts from…
1
vote
0 answers

Best Local Model for Running Questions on Docs

Looking for some recommendations with respect to ideal LLM models that fit the following criteria:- Open Source Downloadable (can be run offline on local server) Can be used for answering questions on the basis of information contained in existing…
1
vote
1 answer

How to structure data for question-answering task to fine-tune a model with Huggingface run_qa.py example?

import sagemaker import boto3 from sagemaker.huggingface import HuggingFace try: role = sagemaker.get_execution_role() except ValueError: iam = boto3.client('iam') role = iam.get_role(RoleName='sagemaker_execution_role')['Role']['Arn'] …
1
vote
1 answer

Why does Pinecone repeatedly return the same result from my series of documents?

When using Pinecone in Langchain, whenever I do a similarity search -- which is supposed to return the most relevant documents to my query -- I find that it returns the same document again and again. (When I use other vectorstores such as Chroma and…
1
vote
0 answers

Access the retrieved memory in LangChain

Is there any way to access the retrieved vectordb information (imported as context in the prompt)? Here is a sample code snippet I have written for this purpose, but the output is not what I expect: from langchain.chains import RetrievalQA from…
Monaj
  • 854
  • 9
  • 16
1
vote
0 answers

mT5 Question/Answering fine tuning is generating empty sentences during inference

mT5-small Question Answering training is converging to high accuracy, high validation accuracy, near-zero low loss; however, when testing the model on trained questions, I am always receiving empty answers. Experiment Language: Arabic Dataset used:…
1
vote
0 answers

what should be the value of the "input_lenghts" in "forward function" in encoder rnn in seq2seq model

i'm training an encoder rnn for sequence to sequence model with batches of 10 sentences . every batches have 10 sentences. and every sentences have 60 words. in the encoder network of the seq2seq model what should be the value of the…
1
vote
0 answers

Segmentation fault: 11 when loading Haystack DensePassageRetriever

I am trying to run this Question Answering model using this doc https://haystack.deepset.ai/tutorials/12_lfqa, but running into segmentation fault as below. I am using Python 3.9.17. May laptop has 64 GB RAM, and when I checked the Activity Monitory…