Skip to content

Commit

Permalink
update with example
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnl committed Jul 22, 2023
1 parent cdcca48 commit d39f0c8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/citation_with_extraction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ curl -X POST -H "Content-Type: application/json" -d '{
}' -N http://localhost:8000/extract
```

```sh
data: {'body': 'In school, the author went to an arts high school.', 'spans': [(91, 106)], 'citation': ['arts highschool']}
data: {'body': 'In university, the author studied Computational Mathematics and physics.', 'spans': [(135, 172)], 'citation': ['Computational Mathematics and physics']}
```

Replace `http://localhost:8000` with the actual URL of your FastAPI app if it's running on a different host and port. The API will respond with Server-Sent Events (SSE) containing the extracted facts in real-time.

## Bring your own API key
Expand All @@ -38,10 +43,6 @@ curl -X 'POST' \
}'
```

```
data: {'body': 'In school, the author went to an arts high school.', 'spans': [(91, 106)], 'citation': ['arts highschool']}
data: {'body': 'In university, the author studied Computational Mathematics and physics.', 'spans': [(135, 172)], 'citation': ['Computational Mathematics and physics']}
```

## Requirements

Expand Down

0 comments on commit d39f0c8

Please sign in to comment.