> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Mark Indexed • AI Agent SDK

> mark_indexed: Mark file as indexed.

# mark\_indexed

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**FileTracker**](../classes/FileTracker) class in the [**indexing**](../modules/indexing) module.

Mark file as indexed.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def mark_indexed(filepath: str, info: Dict[str, Any], memory_ids: Optional[List[str]]) -> None
```

## Parameters

<ParamField query="filepath" type="str" required={true}>
  Path to file
</ParamField>

<ParamField query="info" type="Dict[str, Any]" required={true}>
  File info from get\_file\_info()
</ParamField>

<ParamField query="memory_ids" type="Optional" required={false}>
  Optional list of vector-store memory IDs produced for this file, so a later re-index can delete stale chunks before re-adding.
</ParamField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/knowledge/indexing.py#L370">
  `praisonaiagents/knowledge/indexing.py` at line 370
</Card>
