LlamaIndex 给 LiteParse 加了 gRPC 接口,后端服务间解析文档更快更高效,适合微服务架构。
LlamaIndex 发布了 liteparse-grpc,一个基于 gRPC 协议的文档解析服务,支持 PDF、Office 文档和图片解析,输出 JSON、文本或 Markdown 格式。该服务提供 PDF 页面截图、文档复杂度评估和 OCR 需求判断功能。liteparse-grpc 同时提供 npm 包和 Docker 镜像,以及 TypeScript 客户端存根和 protobuf 定义,便于生成 Python、Go、Java 等语言的客户端。原有的 REST API 仍将继续维护。
Parse PDFs at lightspeed through grpc liteparse already had a REST API, but now we've built in sup...
Parse PDFs at lightspeed through grpc liteparse already had a REST API, but now we've built in support for liteparse as a grpc service with typed fields through protobufs. This is great if you're looking to have fast, efficient document parsing within your backend services. Check it out: llamaindex.ai/blog/introduci… LlamaIndex 🦙 @llama_index Document processing pipelines are often made up of multiple services: parsing → chunking → embeddings → storage. Until now, LiteParse was only available over REST. That works well for browsers and simple integrations, but it’s not always the best fit for service-to-service communication. Today we’re introducing liteparse-grpc. With @𝘭𝘭𝘢𝘮𝘢𝘪𝘯𝘥𝘦𝘹/𝘭𝘪𝘵𝘦𝘱𝘢𝘳𝘴𝘦-𝘨𝘳𝘱𝘤 (npm) or the 𝘨𝘩𝘤𝘳.𝘪𝘰/𝘳𝘶𝘯-𝘭𝘭𝘢𝘮𝘢/𝘭𝘪𝘵𝘦𝘱𝘢𝘳𝘴𝘦-𝘨𝘳𝘱𝘤 Docker image, you can run LiteParse as a gRPC service and: 📄 Parse PDFs, Office documents, and images into JSON, text, or Markdown 📸 Render PDF pages as screenshots 📊 Estimate document complexity and whether OCR is needed The package also includes a CLI client for testing, generated TypeScript client stubs and the protobuf definitions, so you can generate clients for Python, Go, Java, or any other language supported by 𝘱𝘳𝘰𝘵𝘰𝘤 The REST server isn’t going anywhere, this is simply another interface for teams building polyglot, microser llamaindex.ai/blog/introduci… elines. 📖 github.com/run-llama/lite… n: https://t.co/iAIBoXzhEH 💻 GitHub: https://t.co/K0d8XVE7Rc 🔗 View Quoted Tweet 💬 3 🔄 1 ❤️ 13 👀 1325 📊 5 ⚡