Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dluc authored Jul 19, 2023
1 parent 920bf10 commit e71ce25
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ Importing files into your Semantic Memory can be as simple as this:
```csharp
var memory = new SemanticMemoryClient();

await memory.ImportFileAsync("file1.docx", new ImportFileOptions("user-id-1", "memory-collection"));
await memory.ImportFileAsync("file1.docx",
new ImportFileOptions("user-id-1", "memory-collection"));

await memory.ImportFilesAsync(new[] { "file2.docx", "file3.pdf" }, new ImportFileOptions("user-id-1", "memory-collection"));
await memory.ImportFilesAsync(new[] { "file2.docx", "file3.pdf" },
new ImportFileOptions("user-id-1", "memory-collection"));
```

The code leverages the default data ingestion pipeline:
Expand Down Expand Up @@ -70,9 +72,11 @@ To import files using Semantic Memory web service, simply use `SemanticMemoryWeb
```csharp
var memory = new SemanticMemoryWebClient("http://127.0.0.1:9001"); // <== Web Client
await memory.ImportFileAsync("file1.docx", new ImportFileOptions("user-id-1", "memory-collection"));
await memory.ImportFileAsync("file1.docx",
new ImportFileOptions("user-id-1", "memory-collection"));

await memory.ImportFilesAsync(new[] { "file2.docx", "file3.pdf" }, new ImportFileOptions("user-id-1", "memory-collection"));
await memory.ImportFilesAsync(new[] { "file2.docx", "file3.pdf" },
new ImportFileOptions("user-id-1", "memory-collection"));
```


Expand Down

0 comments on commit e71ce25

Please sign in to comment.