Skip to content

Commit

Permalink
Deprecate targets_table in GraphStore
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet committed Jul 22, 2024
1 parent 1012c3e commit 8ee43b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libs/knowledge-store/ragstack_knowledge_store/graph_store.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import logging
import re
import secrets
from dataclasses import asdict, dataclass, field, is_dataclass
Expand All @@ -24,6 +25,8 @@
from .embedding_model import EmbeddingModel
from .links import Link

logger = logging.getLogger(__name__)

CONTENT_ID = "content_id"


Expand Down Expand Up @@ -125,10 +128,17 @@ def __init__(
embedding: EmbeddingModel,
*,
node_table: str = "graph_nodes",
targets_table: str = "",
session: Optional[Session] = None,
keyspace: Optional[str] = None,
setup_mode: SetupMode = SetupMode.SYNC,
):
if targets_table:
logger.warning(
"The 'targets_table' argument is deprecated "
"and will be removed in future versions"
)

session = check_resolve_session(session)
keyspace = check_resolve_keyspace(keyspace)

Expand Down

0 comments on commit 8ee43b9

Please sign in to comment.