Quansight / ragna

RAG orchestration framework ⛵️
https://ragna.chat
BSD 3-Clause "New" or "Revised" License
167 stars 21 forks source link

use custom JSON type for database for more generic support #389

Closed pmeier closed 2 months ago

pmeier commented 2 months ago

Offline report by @nenb. sqlalchemy.types.JSON supports

Thus, using Ragna with a DB like snowflake is impossible.

This PR implements a custom Json type that augments types.String that does nothing but serializing incoming values and deserializing them again on the way out.

This breaks BC so we shouldn't include this in any potential bug fix release until 0.3.

pmeier commented 2 months ago

Lint errors are unrelated. See #390.