sf-vector-sdk 0.2.0__py3-none-any.whl → 0.2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -144,6 +144,25 @@ TOOL_CONFIGS: dict[ToolCollection, ToolConfig] = {
144
144
  namespace_pattern="audiorecapv2section",
145
145
  ),
146
146
  ),
147
+ "Topic": ToolConfig(
148
+ tool_collection="Topic",
149
+ model="gemini-embedding-001",
150
+ dimensions=3072,
151
+ default_priority=PRIORITY_NORMAL,
152
+ turbopuffer=TurboPufferToolConfig(
153
+ enabled=True,
154
+ id_field="contentHash",
155
+ metadata_fields=_DEFAULT_METADATA_FIELDS,
156
+ namespace_pattern="topic_vectors",
157
+ ),
158
+ pinecone=PineconeToolConfig(
159
+ enabled=False,
160
+ index_name="tool-vectors",
161
+ id_field="contentHash",
162
+ metadata_fields=_DEFAULT_METADATA_FIELDS,
163
+ namespace_pattern="topic_vectors",
164
+ ),
165
+ ),
147
166
  }
148
167
 
149
168
 
@@ -198,8 +217,8 @@ def get_turbopuffer_namespace(
198
217
  config = TOOL_CONFIGS[tool_collection]
199
218
  pattern = config.turbopuffer.namespace_pattern
200
219
 
201
- # AudioRecapV2Section doesn't have sub-types
202
- if tool_collection == "AudioRecapV2Section":
220
+ # AudioRecapV2Section and Topic don't have sub-types
221
+ if tool_collection in ("AudioRecapV2Section", "Topic"):
203
222
  return pattern
204
223
 
205
224
  # Derive the type suffix
@@ -228,8 +247,8 @@ def get_pinecone_namespace(
228
247
  config = TOOL_CONFIGS[tool_collection]
229
248
  pattern = config.pinecone.namespace_pattern
230
249
 
231
- # AudioRecapV2Section doesn't have sub-types
232
- if tool_collection == "AudioRecapV2Section":
250
+ # AudioRecapV2Section and Topic don't have sub-types
251
+ if tool_collection in ("AudioRecapV2Section", "Topic"):
233
252
  return pattern
234
253
 
235
254
  # Derive the type suffix