langchain-ai / langchain-redis

MIT License
14 stars 9 forks source link

redis[patch]: fix initialization of RedisConfig.index_schema #19

Closed ccurme closed 2 months ago

ccurme commented 2 months ago

index_schema is getting initialized to None following https://github.com/langchain-ai/langchain-redis/pull/14 because it's failing validation. The issue stems from IndexSchema being a Pydantic V1 BaseModel in redisvl. Here we skip validation on index_schema.