-
Context / ScenarioI have KM running as a service. It runs locally with temporary storage. dotnet run
QuestionExamples are provided to upload a document using the web API. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I also have a use case for importing HTML pages too. As far as I understand "Mime" type validation is ignoring such files. Only option for me now is to covert HTML to MD and then import the file. |
Beta Was this translation helpful? Give feedback.
-
@ravijariwala the service provides the entire API, you could use the Web client that implements all the API methods: nuget: https://www.nuget.org/packages/Microsoft.KernelMemory.WebClient/ |
Beta Was this translation helpful? Give feedback.
-
About HTML that's right there's never been an ask for it, but it would be very easy to add, 99% of the code would be in the TextExtractionHandler |
Beta Was this translation helpful? Give feedback.
-
Support for HTML files added in #327 The API is the same used for other file types, an example is available here https://github.com/microsoft/kernel-memory/tree/main/examples/003-dotnet-Serverless |
Beta Was this translation helpful? Give feedback.
@ravijariwala the service provides the entire API, you could use the Web client that implements all the API methods:
nuget: https://www.nuget.org/packages/Microsoft.KernelMemory.WebClient/
source: https://github.com/microsoft/kernel-memory/tree/main/clients/dotnet/WebClient