mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 20:27:21 +00:00
Added a way to read what the AI received from your sources (#1100)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
e0d8e18f34
commit
cbc4ce5413
229 files changed
+12739
-1269
No files matched your search
@@ -244,6 +244,21 @@ public sealed class SourceExtensionsTests
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void WhatOnlyADataSourceKnowsIsNamedWithoutALink()
|
||||
{
|
||||
IList<Source> sources = [new("handbook.pdf", SourceExtensions.CreateRetrievalSourceUrl("handbook.pdf", "docs/handbook.pdf"), SourceOrigin.RAG)];
|
||||
|
||||
var entries = EntriesOf(sources.ToMarkdown());
|
||||
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
Assert.That(sources[0].HasNoLink(), Is.True);
|
||||
Assert.That(sources[0].IsMailSource(), Is.False);
|
||||
Assert.That(entries[0], Is.EqualTo("- [1] handbook.pdf"), "Exported or copied, an address only AI Studio understands would be a link nobody can follow.");
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AMailIsNamedWithoutALinkThatLeadsNowhere()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user