Skip to content

Commit 36a37e7

Browse files
authored
Merge pull request #901 from oracle-devrel/newAssetWithDocSumm
rag new files and edit in summarization read me
2 parents 2aeacc9 + f2156cd commit 36a37e7

File tree

3 files changed

+41
-14
lines changed

3 files changed

+41
-14
lines changed

ai-and-app-modernisation/ai-services/generative-ai-service/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Reviewed: 30.01.2024
4949
- [Oracle's Vision for the Future - Larry Ellison keynote Oracle Cloud World 2023](https://www.youtube.com/watch?v=63DmgBN1rSI)
5050
- [Generative AI on Oracle.com](https://www.oracle.com/artificial-intelligence/generative-ai/)
5151
- [Generative AI product documentation](https://docs.oracle.com/en-us/iaas/Content/generative-ai/home.htm)
52+
- [Live Lab to Search Documents stored in Object Storage using Opensearch, Generative AI, Semantic Search, RAG](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/run-workshop?p210_wid=3762&p210_wec=&session=114913007746363)
5253

5354
# License
5455

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,54 @@
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
32

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+
![](files/docSummarizeScreen.png)
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
428
pip install -U langchain oci
5-
pip install -r requirements. txt
29+
```
630

7-
# Running the application
31+
Install requirements
832

9-
You need to have your compartment id ready to use that
33+
```console
34+
pip install -r requirements. txt
35+
```
1036

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)
1238

13-
streamlit run ocidocumentSummarizeUpload.py
39+
Then run
1440

15-
# More Info Links
41+
```console
42+
streamlit run ocidocumentSummarizeUpload.py
43+
```
1644

17-
How to run the application : https://www.youtube.com/watch?v=6A3KGyKy91Q&t=21s
45+
## Additional resources
1846

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)
2049

50+
## License
2151

22-
# License
23-
2452
Copyright (c) 2024 Oracle and/or its affiliates.
25-
2653
Licensed under the Universal Permissive License (UPL), Version 1.0.
27-
2854
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
92.2 KB
Loading

0 commit comments

Comments
 (0)