题意:在使用 Chroma DB 和 llamaIndex 查询自定义 PDF 时返回 None 响应
问题背景:
I making a project which uses chromadb (0.3.29), llama-index (0.6.34.post1) and langchain (0.0.245), and openai (0.27.8).But I am getting response None when I tried to query in custom pdfs.even they are getting embedded successfully , below are my codes:
我正在做一个项目,使用了 chromadb (0.3.29)、llama-index (0.6.34.post1)、langchain (0.0.245) 和 openai (0.27.8)。但是当我尝试查询自定义 PDF 时,返回的响应是 None。尽管它们已经成功嵌入,以下是我的代码:
import os, re
import shutil
import time
from grpc import ServicerContext
import vectordb
from langchain import OpenAI
from llama_index import GPTTreeIndex, SimpleDirectoryReader, LLMPredictor,GPT