yysturdy

Results 3 issues of yysturdy

def load_chain(): global j os.environ["OPENAI_API_KEY"] =api_key[j%3] print(api_key[j%3]) j=j+1 #global chain print("模型加载开始") #loader = DirectoryLoader('./langchian_gpt/yuliaoku', glob='**/*.txt') loader = DirectoryLoader('./yuliaoku', glob='**/*.txt') docs = loader.load() # 文档切块 text_splitter = TokenTextSplitter(chunk_size=1000, chunk_overlap=0) doc_texts =...

作者可以问一下,如何将数据库列名与给定的query对齐,那一部分的代码是在干这个事情呀?

**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd...