Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
22 views

Error : PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`

Here is the code after loading data and creating index I am trying to setup the chat engine: index = load_and_index_data() chat_engine = index.as_chat_engine(chat_mode="condense_question", ...
sri vidya's user avatar
0 votes
0 answers
15 views

AnswerRelevancyMetric not showing results on LLM evaluation

i've got this code : from langchain_openai import AzureChatOpenAI from deepeval.models.base_model import DeepEvalBaseLLM class AzureOpenAI(DeepEvalBaseLLM): def __init__( self, ...
Sara's user avatar
  • 422
0 votes
1 answer
44 views

OpenAI API query for an input document

I could build and chat with openAI model but I wish to upload a document and try to ask questions based on that doc. I check some discussions like this My code likes from langchain_community....
linpingta's user avatar
  • 2,580
0 votes
0 answers
27 views

pass recent history to LLM with current prompt

I have the azure openai code below that I am running in python 3.10. In the bot_response function I am passing a query in from the user and getting a response from the LLM. I would like to modify ...
user3476463's user avatar
  • 4,455
0 votes
1 answer
85 views

What can I input under the Object type in Azure Ai Studio's Prompt Flow?

Not sure if it's mentioned in any official documentation but what can I input in Azure Ai Studio's prompt flow that has the "Object" type? Can I put a file as an "Object" input? If ...
GKecheng's user avatar
0 votes
0 answers
84 views

Issues and training when updating the LLM model on a project

We are building an AI tool that allows querying data from an SQL database. Langchain is used as the foundation for training models, maintaining chat history, and integrating with different LLM ...
Daro Govergun's user avatar
0 votes
1 answer
647 views

Azure OpenAI error Error code: 400 - {'statusCode': 400, 'message': "Unable to parse and estimate tokens from incoming request

I used this API a lot in the last few days, and today it's not working, and I don't know what's wrong: prompt = """some complex prompt (just text """ response = client....
yaron's user avatar
  • 3
-2 votes
1 answer
144 views

How to get SQL query from NLP using Openai?

I am working on a POC for NLP to SQL query using the Langchain framework and OpenAI. Sometimes, the generated query has errors and giving wrong query. How can I improve the query generation process? ...
Ganesh's user avatar
  • 7
0 votes
0 answers
55 views

has anyone succeeded in building SQL agent on large database?

I'm trying to do a SQL agent to chat with large database, I have tried all small database but the problem my approach doesn't work on large database because I'm putting the whole database schema in ...
the programmer's user avatar
0 votes
1 answer
661 views

Slow query performance on llamaindex

I have a issue related to llamindex query for which I am unable to find resolution. Basically, I am trying to build a classifier using llamindex. I have around 700 docs (not huge - each is just a ...
Vishnu's user avatar
  • 110
1 vote
1 answer
373 views

LLM computes wrong dates

I'm encountering challenges with handling dates while using GPT-4 on Azure OpenAI. Specifically, I'm trying to extract deadlines from large email threads and convert phrases like "by next Tuesday&...
Myr's user avatar
  • 11
0 votes
0 answers
201 views

Getting embedding error while using AzureOpenAiEmbeddings with GPT-35-turbo

I am getting below error The embeddings operation does not work with the specified model, gpt-35-turbo. Please choose different model and try again I am using the code provided at this Code_link I ...
manshul goel's user avatar
-1 votes
1 answer
397 views

Document search with Azure OpenAI and FAISS is not working

I am trying to create vector index using FAISS but I am either gettingerror : AttributeError: 'str' object has no attribute 'create' OR NotFoundError: Error code: 404 - {'error': {'code': '404', '...
Saday Sarkar's user avatar
1 vote
0 answers
197 views

Text to SQL using Azure OpenAI

I am attempting to extract an SQL query from a simple text by using Azure OpenAI and Langchain. I am applying a filter condition that should generate an SQL query based on specific table details from ...
Ganesh's user avatar
  • 7
0 votes
1 answer
212 views

Implement filtering in RetrievalQA chain

I have been working on implementing the tutorial using RetrievalQA from Langchain with LLM from Azure OpenAI API. I've made progress with my implementation, and below is the code snippet I've been ...
AndCh's user avatar
  • 315

15 30 50 per page