griptape icon indicating copy to clipboard operation
griptape copied to clipboard

Refactor/task memory cleanup

Open collindutter opened this issue 6 months ago • 1 comments

Describe your changes

Added

  • ExtractionClient Tool for having the LLM extract structured data from text.
  • PromptSummaryClient Tool for having the LLM summarize text.
  • QueryClient Tool for having hte LLM queyr text.

Changed

  • BREAKING: Removed TextArtifactStorage.query and TextArtifactStorage.summarize.
  • BREAKING: Removed TextArtifactStorage.rag_engine, and TextArtifactStorage.retrieval_rag_module_name.
  • BREAKING: Removed TextArtifactStorage.summary_engine, TextArtifactStorage.csv_extraction_engine, and TextArtifactStorage.json_extraction_engine.
  • BREAKING: Removed TaskMemory.summarize_namespace and TaskMemory.query_namespace.
  • BREAKING: Removed Structure.rag_engine.
  • BREAKING: Split JsonExtractionEngine.template_generator into JsonExtractionEngine.system_template_generator and JsonExtractionEngine.user_template_generator.
  • BREAKING: Split CsvExtractionEngine.template_generator into CsvExtractionEngine.system_template_generator and CsvExtractionEngine.user_template_generator.
  • BREAKING: Changed JsonExtractionEngine.template_schema from a run argument to a class attribute.
  • BREAKING: Changed CsvExtractionEngine.column_names from a run argument to a class attribute.
  • BREAKING: Removed JsonExtractionTask, and CsvExtractionTask use ExtractionTask instead.
  • BREAKING: Removed TaskMemoryClient, use RagClient, ExtractionClient, or PromptSummaryClient instead.
  • RagClient now can be used to search through Artifacts stored in Task Memory.

Issue ticket number and link

Closes #623 Closes #1024


📚 Documentation preview 📚: https://griptape--1055.org.readthedocs.build//1055/

collindutter avatar Aug 09 '24 18:08 collindutter