ITADN

Field must conform to ...

#298ClosedEHPS-Oliver 创建于 2025-03-13
E
EHPS-Olivercommented
Similar to https://github.com/Abraxas-365/langchain-rust/issues/145 How do I figure out what the correct `vector_dimensions` are? ``` // Initialize the SurrealDB Vector Store let store = StoreBuilder::new() .embedder(embedder) .db(db) .vector_dimensions(1536) .build() .await .unwrap(); ``` I'm using `nomic-embed-text` as the embedder and `SurrealDB` as the db. When I run my code it spits out a array of floats to the terminal saying ``` [..., -0.039786431938409805f] for field `embedding`, with record `document:252wpvsq2i54qxfuczxf`, but field must conform to: (array::len($value) = 1536) OR (array::len($value) = 0)")) ``` How do I get past this?
关闭于 2025-03-13 1 条评论