pymilvus.exceptions.MilvusException: <MilvusException: (code=2, message=Fail connecting to server on localhost:19530, illegal connection params or server unavailable)>
chat_engine = index.as_chat_engine( node_postprocessors=[ SimilarityPostprocessor(similarity_cutoff=0.7) ], chat_mode="context", memory=memory, system_prompt=( "You are an expert Q&A system that is trusted around the world. Answer questions based on the given context." ), )
resume_screener = ResumeScreenerPack( job_description=job_description, criteria=[ "2+ years of experience in one or more of the following areas: machine learning, recommendation systems, pattern recognition, data mining, artificial intelligence, or related technical field", "Experience demonstrating technical leadership working with teams, owning projects, defining and setting technical direction for projects", "Bachelor's degree in Computer Science, Computer Engineering, relevant technical field, or equivalent practical experience.", ], llm=llm, )
service_context = ServiceContext.from_defaults(llm=llm, embed_model=embed_model)
response = resume_screener.run(resume_path="pathtofile")
response_text = chat_engine.chat(question)
service_context = ServiceContext.from_defaults( File "/usr/local/lib/python3.10/dist-packages/llama_index/service_context.py", line 184, in from_defaults llm_metadata=llm_predictor.metadata, File "/usr/local/lib/python3.10/dist-packages/llama_index/llm_predictor/base.py", line 148, in metadata return self._llm.metadata AttributeError: 'OpenAI' object has no attribute 'metadata'