ingestFromTable method

Future<MemoryIngestResult> ingestFromTable({
  1. required String name,
  2. required String table,
  3. List<String>? textColumns,
  4. List<String>? tableNamespace,
  5. int? limit,
  6. List<String>? namespace,
  7. MemoryIngestStrategy strategy = MemoryIngestStrategy.heuristic,
  8. String? llmModel,
  9. double? llmTemperature,
})

Implementation

Future<MemoryIngestResult> ingestFromTable({
  required String name,
  required String table,
  List<String>? textColumns,
  List<String>? tableNamespace,
  int? limit,
  List<String>? namespace,
  MemoryIngestStrategy strategy = MemoryIngestStrategy.heuristic,
  String? llmModel,
  double? llmTemperature,
}) async {
  final response = await _invokeJson("ingest_from_table", {
    "name": name,
    "namespace": namespace,
    "table": table,
    "table_namespace": tableNamespace,
    "text_columns": textColumns,
    "limit": limit,
    "strategy": strategy.value,
    "llm_model": llmModel,
    "llm_temperature": llmTemperature,
  });
  return MemoryIngestResult.fromJson(response.json, operation: "ingest_from_table");
}