From be2719c0aafe4a0a4c65d2799d3a3d6c62b5b894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Daems?= <73901882+chloedia@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:54:01 +0100 Subject: [PATCH] fix: ReadME (#191) --- README.md | 18 ------------------ docs/archive.txt | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 docs/archive.txt diff --git a/README.md b/README.md index 3e2b16b..40ba083 100644 --- a/README.md +++ b/README.md @@ -71,24 +71,6 @@ megaparse.save("./test.md") ``` **Note**: The model supported by MegaParse Vision are the multimodal ones such as claude 3.5, claude 4, gpt-4o and gpt-4. -### (Optional) Use LlamaParse for Improved Results - -1. Create an account on [Llama Cloud](https://cloud.llamaindex.ai/) and get your API key. - -2. Change the parser to LlamaParser - -```python -from megaparse import MegaParse -from langchain_openai import ChatOpenAI -from megaparse.parser.llama_parser import LlamaParser - -parser = LlamaParser(api_key = os.getenv("LLAMA_CLOUD_API_KEY")) -megaparse = MegaParse(parser) -response = megaparse.load("./test.pdf") -print(response) -megaparse.save("./test.md") #saves the last processed doc in md format -``` - ## Use as an API There is a MakeFile for you, simply use : ```make dev``` diff --git a/docs/archive.txt b/docs/archive.txt new file mode 100644 index 0000000..a4e4691 --- /dev/null +++ b/docs/archive.txt @@ -0,0 +1,17 @@ +### (Optional) Use LlamaParse for Improved Results + +1. Create an account on [Llama Cloud](https://cloud.llamaindex.ai/) and get your API key. + +2. Change the parser to LlamaParser + +```python +from megaparse import MegaParse +from langchain_openai import ChatOpenAI +from megaparse.parser.llama_parser import LlamaParser + +parser = LlamaParser(api_key = os.getenv("LLAMA_CLOUD_API_KEY")) +megaparse = MegaParse(parser) +response = megaparse.load("./test.pdf") +print(response) +megaparse.save("./test.md") #saves the last processed doc in md format +``` \ No newline at end of file