Skip to content

Commit

Permalink
Add documentation about reset index of dataset (#175)
Browse files Browse the repository at this point in the history
* add documentation for reset index

* add documentation at troubleshooting.md

---------

Co-authored-by: jeffrey <[email protected]>
  • Loading branch information
vkehfdl1 and jeffrey authored Feb 16, 2024
1 parent c6e9224 commit 8ded58d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/data_creation/data_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ If you don't have any metadata, you can put an empty dictionary.
It will create a default metadata for you. (like `last_modified_datetime` with `datetime.now()`)
```

```{attention}
Please check that you reset the indicies of your dataset files.
If not, it can occur unexpected behavior.
```

## Samples

Looking for an example of dataset?
Expand Down
9 changes: 9 additions & 0 deletions docs/source/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,12 @@ In our experiment, it occurred rate limit error when the batch size was 4.
(Check out your tier and limit error at [here](https://platform.openai.com/account/limits).)
```

### The length or row is different from the original data

When the length of result is different from the original data, it is often caused by the index.

You must reset the index of your dataset before running AutoRAG.

```python
df = df.reset_index(drop=True)
```

0 comments on commit 8ded58d

Please sign in to comment.