|
1 |
| -# Prerequisites |
2 |
| -You need the latest versions of LangChain and the OCI software developer kit (SDK). To install and upgrade these two Python packages, use the following command: |
| 1 | +# Document Summarization Using Oracle Generative AI |
3 | 2 |
|
| 3 | +Often, it would be useful to see a summary of a document before reading it fully. There are many reasons—for example, we could be in a time crunch and need to quickly understand a large amount of text at a high level. In the past, seeing a document summary would have been extremely difficult unless the author wrote one. However, now it can be possible anytime with [Oracle Cloud Infrastructure (OCI) Generative AI](https://www.oracle.com/uk/artificial-intelligence/generative-ai/generative-ai-service/). Simply upload any document and witness instant, efficient summarization. |
| 4 | +This project will show you how to set up such a system, feed it documents, and have it deliver summaries that will help accelerate your organization’s efficiency. |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +## Prerequisites |
| 9 | + |
| 10 | +1. Oracle Cloud account—[sign-up page](https://signup.cloud.oracle.com/) |
| 11 | +2. Getting started with OCI Generative AI for summarization—[docs](https://docs.oracle.com/en-us/iaas/Content/generative-ai/use-playground-summarize.htm#playground-summarize) |
| 12 | +3. OCI Generative AI—[Python SDK ](https://pypi.org/project/oci/) |
| 13 | +4. Front-end framework—[Streamlit](https://streamlit.io/) |
| 14 | +5. Development Framework-[LangChain](https://python.langchain.com/docs/get_started/introduction) |
| 15 | + |
| 16 | + |
| 17 | +## Running the application |
| 18 | + |
| 19 | +Open `files` directory in CLI |
| 20 | + |
| 21 | +```console |
| 22 | +cd files/ |
| 23 | +``` |
| 24 | + |
| 25 | +Install LangChain and OCI SDK |
| 26 | + |
| 27 | +```console |
4 | 28 | pip install -U langchain oci
|
5 |
| -pip install -r requirements. txt |
| 29 | +``` |
6 | 30 |
|
7 |
| -# Running the application |
| 31 | +Install requirements |
8 | 32 |
|
9 |
| -You need to have your compartment id ready to use that |
| 33 | +```console |
| 34 | +pip install -r requirements. txt |
| 35 | +``` |
10 | 36 |
|
11 |
| -just run the command to launch the application |
| 37 | +For next step you will need [OCI Compartment ID](https://docs.oracle.com/en/cloud/foundation/cloud_architecture/governance/compartments.html#what-is-a-compartment) |
12 | 38 |
|
13 |
| -streamlit run ocidocumentSummarizeUpload.py |
| 39 | +Then run |
14 | 40 |
|
15 |
| -# More Info Links |
| 41 | +```console |
| 42 | +streamlit run ocidocumentSummarizeUpload.py |
| 43 | +``` |
16 | 44 |
|
17 |
| -How to run the application : https://www.youtube.com/watch?v=6A3KGyKy91Q&t=21s |
| 45 | +## Additional resources |
18 | 46 |
|
19 |
| -Different methods of sumarization : https://medium.com/@anshuman4luv/revolutionizing-document-summarization-innovative-methods-with-langchain-and-large-language-models-f12272c7e8cd |
| 47 | +- [How to run the application](https://www.youtube.com/watch?v=6A3KGyKy91Q&t=21s) |
| 48 | +- [Blog - Different methods of sumarization](https://medium.com/@anshuman4luv/revolutionizing-document-summarization-innovative-methods-with-langchain-and-large-language-models-f12272c7e8cd) |
20 | 49 |
|
| 50 | +## License |
21 | 51 |
|
22 |
| -# License |
23 |
| - |
24 | 52 | Copyright (c) 2024 Oracle and/or its affiliates.
|
25 |
| - |
26 | 53 | Licensed under the Universal Permissive License (UPL), Version 1.0.
|
27 |
| - |
28 | 54 | See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
|
0 commit comments