Open yungangwu opened 1 year ago
Thanks for reporting this issue. Unfortunately, I do not have an updated list of dependencies, but I was able to determine the versions of 'chroma' and 'langchain' utilized in this project:
chroma: 0.3.21 langchain: 0.0.192
I hope this information is helpful.
llamacpp的版本是多少呢?
llamacpp的版本是多少呢?
还有python版本用的是3.8就会报错,3.11就成功运行了 NoIndexException Traceback (most recent call last) Cell In[2], line 1 ----> 1 print(tommie.get_summary(force_refresh=True))
File ~/miniconda3/envs/llama/lib/python3.11/site-packages/langchain/experimental/generative_agents/generative_agent.py:234, in GenerativeAgent.get_summary(self, force_refresh, now) 228 since_refresh = (current_time - self.last_refreshed).seconds 229 if ( 230 not self.summary 231 or since_refresh >= self.summary_refresh_seconds 232 or force_refresh 233 ): --> 234 self.summary = self._compute_agent_summary() 235 self.last_refreshed = current_time 236 age = self.age if self.age is not None else "N/A"
File /home/llama_generative_agent-main/generative_agents/llama_generative_agent.py:82, in LlamaGenerativeAgent._compute_agent_summary(self) 76 prompt = PromptTemplate.from_template( 77 self.system_prompt % instruction 78 ) 79 # The agent seeks to think about their core characteristics. 80 return ( 81 self.chain(prompt) ---> 82 .run(name=self.name, queries=[f"{self.name}'s core characteristics"]) 83 .strip() ... --> 223 raise NoIndexException("Index not found, please create an instance before querying") 225 # Check dimensionality 226 self._check_dimensionality(query)
能不能麻烦将需要的依赖包版本,写成一个requirement.txt文件,在运行的过程中,依赖包错误。