strip chat
This commit is contained in:
1 parent
cd4be515f3
commit
3cedada44e
52 files changed
+5
-5411
No files matched your search
@@ -1,12 +0,0 @@
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:langchain/langchain.dart';
|
||||
|
||||
String combineDocuments(List<Document> documents, {String separator = '\n\n'}) {
|
||||
return documents.map((d) => d.pageContent).join(separator);
|
||||
}
|
||||
|
||||
Uint8List serializeVector(List<double> vector) {
|
||||
final buffer = Float32List.fromList(vector).buffer;
|
||||
return Uint8List.view(buffer);
|
||||
}
|
||||
Reference in new issue
Block a user