IDistiller class

Constructors

IDistiller({int targetOutputSize = 500, required ConnectedChatModel llm, String? organization})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
llm ConnectedChatModel
final
organization String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetOutputSize int
final

Methods

distill({required String input, required String header, String prompt = """ Your job is to distill all of the information in the content provided into a clean concise representation of the information without any loss of meaning. * Strip out formatting, special characters, and other non-essential information. I.e. strip out json keys and just represent the information in written way. * If the content has a lot of diacritics (OCR errors), do your best to make sense of them or correct them, if unsure, keep them as they are * Only output the response, this is not a chat, do not include any extra commentary or formatting. """}) Future<String>
distillFrom({required String header, required List<IChunk> chunks, int index = 0, bool summarize = false}) Future<IChunk>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited