mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-06 02:48:04 +00:00
`_json_to_metadata` parses the metadata of every result row returned by search and get. It now goes through `JSONCodec`, which selects orjson when `ENABLE_ORJSON` is set. The text it parses is produced by Oracle's own `JSON_SERIALIZE`, and the column is a native `JSON` type, so the database normalises whatever was written and the reader never depends on the writer's escaping. The matching `_metadata_to_json` write deliberately keeps stdlib `json`: it passes `default=self._decimal_handler`, orjson accepts none of stdlib's keyword arguments, and dropping the handler would turn a currently successful insert of a `Decimal` into a hard failure. The read side has no such constraint. With `ENABLE_ORJSON` unset, which is the default, `JSONCodec` is stdlib `json` and this call site behaves exactly as before. |
||
|---|---|---|
| .. | ||
| chroma.py | ||
| elasticsearch.py | ||
| mariadb_vector.py | ||
| milvus.py | ||
| milvus_multitenancy.py | ||
| opengauss.py | ||
| opensearch.py | ||
| oracle23ai.py | ||
| pgvector.py | ||
| pinecone.py | ||
| qdrant.py | ||
| qdrant_multitenancy.py | ||
| s3vector.py | ||
| valkey.py | ||
| weaviate.py | ||