Tracks and manages document processing lifecycle states (draft, review, approved, archived).
#!/usr/bin/env python # Source: https://github.com/FoundationAgents/MetaGPT | License: MIT | Copyright 2024 Chenglin Wu # Provided via justclaw.it.com; keep this notice with the code. # -*- coding: utf-8 -*- """ @Time : 2023/6/8 14:03 @Author : alexanderwu @File : document.py @Desc : Classes and Operations Related to Files in the File System. """ from enum import Enum from pathlib import Path from typing import Optional, Union import pandas as pd from llama_index.core import Document, SimpleDirectoryReader from llama_index.core.node_parser import SimpleNodeParser from llama_index.readers.file import PDFReader from pydantic import BaseModel, ConfigDict, Field from tqdm import tqdm from metagpt.logs import logger from metagpt.repo_parser import RepoParser def validate_cols(cont ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key