ERROR:root:Error processing query: 1 validation error for TextNode text Input should be a valid string [type=string_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.10/v/string_type
def query_vector_store(self, query: str, top_k: int = 15): retriever = VectorStoreIndex.from_vector_store(self.vector_store).as_query_engine(llm=self.get_llm, similarity_top_k=top_k) response = retriever.query(query) return response
from llama_index.core.readers import SimpleDirectoryReader
agent.update_prompts({"agent_worker:system_prompt": react_system_prompt})
?error: TypeError: FunctionTool.from_defaults() missing 1 required positional argument: 'fn'
pick_func = FunctionTool.from_defaults(async_fn=flight_service.create_pickup_flight_alert)
FunctionTool.from_defaults(fn=callback_function)
def callback_function(request:Request):
resp = request.json()
print(resp)
example:The
schema method is deprecated; use
model_json_schema instead. Deprecated in Pydantic V2.0 to be removed in V3.0.
OpenAIPydanticProgram.from_defaults
but i get lost where to use it, i wanna feed the generated dict to another agent so it can call a functions.Error: Resource averaged_perceptron_tagger not found.
Please use the NLTK Downloader to obtain the resource:
mad/fix-bug
ImportError: cannot import name 'MessageContentText' from 'openai.types.beta.threads' (/llm-test/pythonProject/.venv/lib/python3.12/site-packages/openai/types/beta/threads/__init__.py). Did you mean: 'MessageContentDelta'?