Skip to content

Commit 096de2d

Browse files
committed
Moves examples into dedicated folder with README.
1 parent 93a6f49 commit 096de2d

File tree

6 files changed

+17
-2
lines changed

6 files changed

+17
-2
lines changed
File renamed without changes.

examples/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Examples
2+
3+
These examples are used to support tutorial blog posts as follows:
4+
5+
6+
## country-capitals
7+
8+
See: [Creating a RAG Chatbot with ChatGPT and PyMuPDF](https://artifex.com/blog/creating-a-rag-chatbot-with-chatgpt-and-pymupdf)
9+
10+
11+
12+
## GUI
13+
14+
See: [Building a RAG Chatbot GUI with the ChatGPT API and PyMuPDF](https://artifex.com/blog/building-a-rag-chatbot-gui-with-the-chatgpt-api-and-pymupdf)
15+
File renamed without changes.

country-capitals/country-capitals.py renamed to examples/country-capitals/country-capitals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
a meaningful response.
1818
"""
1919

20-
import fitz
20+
import pymupdf
2121
import textwrap
2222
from openai import OpenAI
2323

@@ -47,7 +47,7 @@ def extract_text_from_pdf(pdf_path):
4747
header repeat situations.
4848
"""
4949
# open document
50-
doc = fitz.open(pdf_path)
50+
doc = pymupdf.open(pdf_path)
5151

5252
text = "" # we will return this string
5353
row_count = 0 # counts table rows
File renamed without changes.

0 commit comments

Comments
 (0)