Skip to content

Commit

Permalink
fix redis
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich committed Oct 2, 2024
1 parent ea582d5 commit 3bf7a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""

import logging
import numpy as np
from typing import Any, Dict, List, Optional

import fsspec
Expand Down Expand Up @@ -250,7 +251,7 @@ def add(self, nodes: List[BaseNode], **add_kwargs: Any) -> List[str]:
NODE_ID_FIELD_NAME: node.node_id,
DOC_ID_FIELD_NAME: node.ref_doc_id,
TEXT_FIELD_NAME: node.get_content(metadata_mode=MetadataMode.NONE),
VECTOR_FIELD_NAME: array_to_buffer(embedding),
VECTOR_FIELD_NAME: array_to_buffer(embedding, dtype=np.float32),
}
# parse and append metadata
additional_metadata = node_to_metadata_dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-vector-stores-redis"
readme = "README.md"
version = "0.3.2"
version = "0.3.3"

[tool.poetry.dependencies]
python = ">=3.9,<4.0"
Expand Down

0 comments on commit 3bf7a95

Please sign in to comment.