Skip to content

Index is not ready. #5

@DuanyangYuan

Description

@DuanyangYuan

您好!修改from semantic_router.routers import SemanticRouter之后又报错索引,请问这个您有遇到过吗?怎么解决
/kios/experiments/demo/human_in_the_loop_syncrun.py
envs/kios/lib/python3.10/site-packages/langchain_core/_api/deprecation.py:119: LangChainDeprecationWarning: LangChain has introduced a method called with_structured_output that is available on ChatModels capable of tool calling. You can read more about the method here: https://python.langchain.com/docs/modules/model_io/chat/structured_output/ Please follow our extraction use case documentation for more guidelines on how to do information extraction with LLMs. https://python.langchain.com/docs/use_cases/extraction/. If you notice other issues, please provide feedback here: https://github.com/langchain-ai/langchain/discussions/18154
warn_deprecated(
2025-10-12 20:32:24 INFO semantic_router Loading route config from kios/data/routers/user_feedback_router.json
2025-10-12 20:32:24 WARNING semantic_router No index provided. Using default LocalIndex.
2025-10-12 20:32:24 INFO semantic_router Loading route config from kios/data/routers/executor_success_router.json
2025-10-12 20:32:24 WARNING semantic_router No index provided. Using default LocalIndex.
2025-10-12 20:32:24 INFO semantic_router Loading route config fromkios/data/routers/executor_failure_router.json
2025-10-12 20:32:24 WARNING semantic_router No index provided. Using default LocalIndex.
2025-10-12 20:32:24 INFO semantic_router Loading route config fromkios/data/routers/user_input_router.json
2025-10-12 20:32:24 WARNING semantic_router No index provided. Using default LocalIndex.
envs/kios/lib/python3.10/site-packages/langsmith/client.py:241: LangSmithMissingAPIKeyWarning: API key must be provided when using hosted LangSmith API
warnings.warn(
(INFO):[Langgraph]:-----user_input_step-----
(AI)---[KIOS]:Please provide your instructions:
WARNING:langsmith.client:Failed to multipart ingest runs: langsmith.utils.LangSmithAuthError: Authentication failed for https://api.smith.langchain.com/runs/multipart. HTTPError('401 Client Error: Unauthorized for url: https://api.smith.langchain.com/runs/multipart', '{"error":"Unauthorized"}\n')trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=8532213b-452d-4e2c-8df2-7be8b723d87f; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=3e7ef663-edde-402e-a0ea-dae9d5b1e6a3; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=0666c019-c110-4e04-8198-7dc7a1c10ddc; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=602a03ae-54cc-4c2b-812f-ffaf31a1ecad; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=b7c1640d-7697-457e-b13a-dc9d64a75566; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=473cd5ca-8c40-4a9b-99c7-65060eaef2a8; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=8f608b2f-9a7e-4f12-bd77-f59ca49a5b75; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=0da9546b-cac5-49f5-9834-9b0580415d21; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=3b522ea2-5cf6-4e4c-8eab-7322cd9b4d47; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=afb96c23-1737-4abd-80de-0b27716f5095; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=d24c64cf-cf93-4d24-ac89-485c7059f6a8; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=a8b43458-6770-4c7a-88c4-fb732415d77d; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=36e98d97-bb5f-4075-a073-0f608d4ecdcf; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=64d3f752-e8e9-4c9b-a477-0f65d77e2152; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=2742d9c9-95d7-44cf-afbc-86c99543ae9d; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=d0ab8107-1330-473a-89be-a9cbe1779fc2; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=3e20ca24-afe9-410e-b698-f593bde1c9f9; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=62c81537-9400-44ba-9b00-d72a22e3af8f
kios, can you help me insert gear3 into the third shaft?
Traceback (most recent call last):
File "kios/experiments/demo/human_in_the_loop_syncrun.py", line 605, in
core_run()
File "kios/experiments/demo/human_in_the_loop_syncrun.py", line 594, in core_run
for event in app.stream(
File "kios/lib/python3.10/site-packages/langgraph/pregel/init.py", line 615, in transform
for chunk in self._transform_stream_with_config(
File "envs/kios/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 1881, in _transform_stream_with_config
chunk: Output = context.run(next, iterator) # type: ignore
File "envs/kios/lib/python3.10/site-packages/langgraph/pregel/init.py", line 355, in _transform
_interrupt_or_proceed(done, inflight, step)
File "envs/kios/lib/python3.10/site-packages/langgraph/pregel/init.py", line 698, in _interrupt_or_proceed
raise exc
File "envs/kios/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "envs/kios/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 4525, in invoke
return self.bound.invoke(
File "envs/kios/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 2499, in invoke
input = step.invoke(
File "kios/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 3963, in invoke
return self._call_with_config(
File "kios/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 1626, in _call_with_config
context.run(
File "lib/python3.10/site-packages/langchain_core/runnables/config.py", line 347, in call_func_with_variable_args
return func(input, **kwargs) # type: ignore[call-arg]
File "kios/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 3837, in _invoke
output = call_func_with_variable_args(
File "kios/lib/python3.10/site-packages/langchain_core/runnables/config.py", line 347, in call_func_with_variable_args
return func(input, **kwargs) # type: ignore[call-arg]
File "kios/lib/python3.10/site-packages/langgraph/graph/graph.py", line 23, in runnable
result = self.condition(input)
File "experiments/demo/human_in_the_loop_syncrun.py", line 559, in user_input_should_end
route = user_input_router(state["user_input"])
File "kios/lib/python3.10/site-packages/semantic_router/routers/base.py", line 596, in call
raise ValueError("Index is not ready.")
ValueError: Index is not ready.
WARNING:langsmith.client:Failed to multipart ingest runs: langsmith.utils.LangSmithAuthError: Authentication failed for https://api.smith.langchain.com/runs/multipart. HTTPError('401 Client Error: Unauthorized for url: https://api.smith.langchain.com/runs/multipart', '{"error":"Unauthorized"}\n')trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=842bde8f-6a32-4f24-b9d6-313e77dc0f80; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=6b450490-acaa-4783-9129-4566e3c58d0c; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=7c9375ef-cc41-4413-8e0f-3c608918162e; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=fdde6a01-726c-4a44-a2e7-7e2718c43f60; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=d7b580f2-a44d-4ffe-ab9d-fd375bb76524; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=9793970d-d2ac-4c61-adfc-cbc44143c2c8; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=3249afd9-68fc-4499-bcdb-18da4b99b5f9; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=4a008fca-01a5-432e-bdf5-786ddb690982; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=144fef7e-182a-451d-ad70-130723663feb; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=8bf8ec4a-6004-41ad-a2c3-ce90ba937cb2; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=ede2b892-8fce-47ca-b19d-1fb1defb21bd; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=30c4f61e-e925-4331-ba10-8548f36e88af; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=072607dc-af17-4a4e-8eeb-0ec0e18ded9b; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=2742d9c9-95d7-44cf-afbc-86c99543ae9d; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=3e20ca24-afe9-410e-b698-f593bde1c9f9; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=62c81537-9400-44ba-9b00-d72a22e3af8f; trace=8532213b-452d-4e2c-8df2-7be8b723d87f,id=8532213b-452d-4e2c-8df2-7be8b723d87f

进程已结束,退出代码1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions