Skip to content

Commit fc2b18a

Browse files
committed
Fix readme example
1 parent 04895a1 commit fc2b18a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,16 @@ As you can see with the following example usage of the `Build5Nines.SharpVector`
7373
// Perform a Vector Search
7474
var result = vdb.Search(newPrompt, pageCount: 5); // return the first 5 results
7575
76-
if (result.HasResults)
76+
if (!result.IsEmpty)
7777
{
7878
Console.WriteLine("Similar Text Found:");
7979
foreach (var item in result.Texts)
8080
{
8181
Console.WriteLine(item.Metadata);
8282
Console.WriteLine(item.Text);
8383
}
84+
} else {
85+
Console.WriteLine("No results found.");
8486
}
8587
```
8688

0 commit comments

Comments
 (0)