Unstructured-IO / Unstructured-IO/unstructured-python-client

Problem in using unstructured workflows

オープン
#254 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
119
フォーク
22
平均マージ
1日 21時間
マージ済み PR(30日)
1

説明

Hi!
I am developing an ETL pipeline using restate and Unstructured, using python. I have the following problem:

  • I do not want to use Partition Endpoint because I also need the enrichment step.
  • Using a workflow, I noticed that if a second user requests to process a document while the first one is still processing, there are two possible cases:
      1. the second request is quite close to the first (i.e., the first initiated job is still reading files from the source (in my case a folder on S3))
      1. the second request occurs during a later stage of the job: in this case the request is lost (a request consists of loading a new file into the source folder of S3 and then starting the workflow)

Since the first case is also problematic (if multiple users upload files almost simultaneously they will have to wait for all files to be processed before seeing their output, since unstructured first processes and then saves everything together), I came up with this solution:

  • When a new request comes in, I create a source folder on S3, specific to that request.
  • I create and start a workflow specific to that request, which I then destroy when finished
    This way there should be no problem, do you have any better suggestions?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リポジトリのファイルやテストは特定されていません。まず、workflow のエントリーポイントと、S3 ベースの処理について説明されている同時リクエストの動作を確認し、続いて各 workflow の段階で到着するリクエストをどのように扱うべきかを明確にしてください。重複するアップロードと workflow の実行について、合意済みで再現可能な解決策が定まれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, python
領域
backend, cloud
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。