weaviate / recipes

This repository shares end-to-end notebooks on how to use various Weaviate features and integrations!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error running dspy blogpost receipe.

hanw opened this issue · comments

Hi,

I ran into this error when trying the writing-blogpost-with-dspy example. Which schema should I use to initialize weaviate for this example?

weaviate.exceptions.UnexpectedStatusCodeError: Query was not successful! Unexpected status code: 422, with response body: {'error': [{'message': 'no graphql provider present, this is most likely because no schema is present. Import a schema first!'}]}.

The command I used to run docker image. Docker seems to work fine.

$ sudo docker compose up
[+] Running 1/0
✔ Container dspy-weaviate-1 Recreated 0.1s
Attaching to dspy-weaviate-1
dspy-weaviate-1 | {"action":"startup","default_vectorizer_module":"text2vec-openai","level":"info","msg":"the default vectorizer modules is set to "text2vec-openai", as a result all new schema classes without an explicit vectorizer setting, will use this vectorizer","time":"2024-02-27T16:21:40Z"}
dspy-weaviate-1 | {"action":"startup","auto_schema_enabled":true,"level":"info","msg":"auto schema enabled setting is set to "true"","time":"2024-02-27T16:21:40Z"}
dspy-weaviate-1 | {"action":"init_state.delete_init","level":"error","msg":"disk_space: no such file or directory","time":"2024-02-27T16:21:40Z"}
dspy-weaviate-1 | {"level":"info","msg":"No resource limits set, weaviate will use all available memory and CPU. To limit resources, set LIMIT_RESOURCES=true","time":"2024-02-27T16:21:40Z"}
dspy-weaviate-1 | {"level":"warning","msg":"Multiple vector spaces are present, GraphQL Explore and REST API list objects endpoint module include params has been disabled as a result.","time":"2024-02-27T16:21:40Z"}
dspy-weaviate-1 | {"action":"grpc_startup","level":"info","msg":"grpc server listening at [::]:50051","time":"2024-02-27T16:21:40Z"}
dspy-weaviate-1 | {"action":"restapi_management","level":"info","msg":"Serving weaviate at http://[::]:8080","time":"2024-02-27T16:21:40Z"}
dspy-weaviate-1 | {"level":"info","msg":"Created shard blogpost_If99mDEIQECO in 2.997278ms","time":"2024-02-27T16:55:30Z"}
dspy-weaviate-1 | {"action":"hnsw_vector_cache_prefill","count":1000,"index_id":"main","level":"info","limit":1000000000000,"msg":"prefilled vector cache","time":"2024-02-27T16:55:30Z","took":239392}