microsoft / kernel-memory

RAG architecture: index and query any data using LLM and natural language, track sources, show citations, asynchronous memory patterns.
https://microsoft.github.io/kernel-memory
MIT License
1.52k stars 293 forks source link

[Bug] MemoryWebClient - Rewind stream before posting to server #508

Closed westdavidr closed 4 months ago

westdavidr commented 4 months ago

Context / Scenario

I am using the Kernel Memory project's MemoryWebClient to upload a stream to the server. The stream needs to be rewound before it is posted, but currently, this step seems to be missing, causing the server to receive an empty stream.

What happened?

When attempting to upload a stream using MemoryWebClient, the server receives an empty stream. It appears that the stream is not being rewound to its beginning before the upload, which results in the server not receiving the complete data as intended.

Importance

a fix would make my life easier

Platform, Language, Versions

Windows, C#, 0.51.240513.2

Relevant log output

No response

dluc commented 4 months ago

thank you!