Skip to content

Commit 7a0fca7

Browse files
doc: fix headings (#656)
* doc: fix headings * Fix incorrect uses of heading levels * fix indenting within lists Signed-off-by: David B. Kinder <david.b.kinder@intel.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent beda609 commit 7a0fca7

File tree

6 files changed

+212
-198
lines changed

6 files changed

+212
-198
lines changed

AgentQnA/README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,50 +26,50 @@ This example showcases a hierarchical multi-agent system for question-answering
2626
1. Build agent docker image </br>
2727
First, clone the opea GenAIComps repo
2828

29-
```
30-
export WORKDIR=<your-work-directory>
31-
cd $WORKDIR
32-
git clone https://github.com/opea-project/GenAIComps.git
33-
```
29+
```
30+
export WORKDIR=<your-work-directory>
31+
cd $WORKDIR
32+
git clone https://github.com/opea-project/GenAIComps.git
33+
```
3434

35-
Then build the agent docker image. Both the supervisor agent and the worker agent will use the same docker image, but when we launch the two agents we will specify different strategies and register different tools.
35+
Then build the agent docker image. Both the supervisor agent and the worker agent will use the same docker image, but when we launch the two agents we will specify different strategies and register different tools.
3636

37-
```
38-
cd GenAIComps
39-
docker build -t opea/comps-agent-langchain:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/agent/langchain/docker/Dockerfile .
40-
```
37+
```
38+
cd GenAIComps
39+
docker build -t opea/comps-agent-langchain:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/agent/langchain/docker/Dockerfile .
40+
```
4141

4242
2. Launch tool services </br>
4343
In this example, we will use some of the mock APIs provided in the Meta CRAG KDD Challenge to demonstrate the benefits of gaining additional context from mock knowledge graphs.
4444

45-
```
46-
docker run -d -p=8080:8000 docker.io/aicrowd/kdd-cup-24-crag-mock-api:v0
47-
```
45+
```
46+
docker run -d -p=8080:8000 docker.io/aicrowd/kdd-cup-24-crag-mock-api:v0
47+
```
4848

4949
3. Set up environment for this example </br>
5050
First, clone this repo
5151

52-
```
53-
cd $WORKDIR
54-
git clone https://github.com/opea-project/GenAIExamples.git
55-
```
52+
```
53+
cd $WORKDIR
54+
git clone https://github.com/opea-project/GenAIExamples.git
55+
```
5656

57-
Second, set up env vars
57+
Second, set up env vars
5858

59-
```
60-
export TOOLSET_PATH=$WORKDIR/GenAIExamples/AgentQnA/tools/
61-
# optional: OPANAI_API_KEY
62-
export OPENAI_API_KEY=<your-openai-key>
63-
```
59+
```
60+
export TOOLSET_PATH=$WORKDIR/GenAIExamples/AgentQnA/tools/
61+
# optional: OPANAI_API_KEY
62+
export OPENAI_API_KEY=<your-openai-key>
63+
```
6464

6565
4. Launch agent services</br>
6666
The configurations of the supervisor agent and the worker agent are defined in the docker-compose yaml file. We currently use openAI GPT-4o-mini as LLM, and we plan to add support for llama3.1-70B-instruct (served by TGI-Gaudi) in a subsequent release.
6767
To use openai llm, run command below.
6868

69-
```
70-
cd docker/openai/
71-
bash launch_agent_service_openai.sh
72-
```
69+
```
70+
cd docker/openai/
71+
bash launch_agent_service_openai.sh
72+
```
7373

7474
## Validate services
7575

DocIndexRetriever/docker/README.md

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
# DocRetriever Application
1+
# DocRetriever Application with Docker
22

33
DocRetriever are the most widely adopted use case for leveraging the different methodologies to match user query against a set of free-text records. DocRetriever is essential to RAG system, which bridges the knowledge gap by dynamically fetching relevant information from external sources, ensuring that responses generated remain factual and current. The core of this architecture are vector databases, which are instrumental in enabling efficient and semantic retrieval of information. These databases store data as vectors, allowing RAG to swiftly access the most pertinent documents or data points based on semantic similarity.
44

5-
### 1. Build Images for necessary microservices. (This step will not needed after docker image released)
5+
## 1. Build Images for necessary microservices. (This step will not needed after docker image released)
66

77
- Embedding TEI Image
88

9-
```bash
10-
git clone https://github.com/opea-project/GenAIComps.git
11-
cd GenAIComps
12-
docker build -t opea/embedding-tei:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/embeddings/langchain/docker/Dockerfile .
13-
```
9+
```bash
10+
git clone https://github.com/opea-project/GenAIComps.git
11+
cd GenAIComps
12+
docker build -t opea/embedding-tei:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/embeddings/langchain/docker/Dockerfile .
13+
```
1414

1515
- Retriever Vector store Image
1616

17-
```bash
18-
docker build -t opea/retriever-redis:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/retrievers/langchain/redis/docker/Dockerfile .
19-
```
17+
```bash
18+
docker build -t opea/retriever-redis:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/retrievers/langchain/redis/docker/Dockerfile .
19+
```
2020

2121
- Rerank TEI Image
2222

23-
```bash
24-
docker build -t opea/reranking-tei:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/reranks/tei/docker/Dockerfile .
25-
```
23+
```bash
24+
docker build -t opea/reranking-tei:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/reranks/tei/docker/Dockerfile .
25+
```
2626

2727
- Dataprep Image
2828

29-
```bash
30-
docker build -t opea/dataprep-on-ray-redis:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/dataprep/redis/langchain_ray/docker/Dockerfile .
31-
```
29+
```bash
30+
docker build -t opea/dataprep-on-ray-redis:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/dataprep/redis/langchain_ray/docker/Dockerfile .
31+
```
3232

33-
### 2. Build Images for MegaService
33+
## 2. Build Images for MegaService
3434

3535
```bash
3636
cd ..
3737
git clone https://github.com/opea-project/GenAIExamples.git
3838
docker build --no-cache -t opea/doc-index-retriever:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f GenAIExamples/DocIndexRetriever/docker/Dockerfile .
3939
```
4040

41-
### 3. Start all the services Docker Containers
41+
## 3. Start all the services Docker Containers
4242

4343
```bash
4444
export host_ip="YOUR IP ADDR"
@@ -62,7 +62,7 @@ cd GenAIExamples/DocIndexRetriever/docker/${llm_hardware}/
6262
docker compose -f docker-compose.yaml up -d
6363
```
6464

65-
### 3. Validation
65+
## 3. Validation
6666

6767
Add Knowledge Base via HTTP Links:
6868

@@ -86,41 +86,41 @@ curl http://${host_ip}:8889/v1/retrievaltool -X POST -H "Content-Type: applicati
8686
{"id":"354e62c703caac8c547b3061433ec5e8","reranked_docs":[{"id":"06d5a5cefc06cf9a9e0b5fa74a9f233c","text":"Close SearchsearchMenu WikiNewsCommunity Daysx-twitter linkedin github searchStreamlining implementation of enterprise-grade Generative AIEfficiently integrate secure, performant, and cost-effective Generative AI workflows into business value.TODAYOPEA..."}],"initial_query":"Explain the OPEA project?"}
8787
```
8888

89-
### 4. Trouble shooting
89+
## 4. Trouble shooting
9090

9191
1. check all containers are alive
9292

93-
```bash
94-
# redis vector store
95-
docker container logs redis-vector-db
96-
# dataprep to redis microservice, input document files
97-
docker container logs dataprep-redis-server
98-
99-
# embedding microservice
100-
curl http://${host_ip}:6000/v1/embeddings \
101-
-X POST \
102-
-d '{"text":"Explain the OPEA project"}' \
103-
-H 'Content-Type: application/json' > query
104-
docker container logs embedding-tei-server
105-
106-
# if you used tei-gaudi
107-
docker container logs tei-embedding-gaudi-server
108-
109-
# retriever microservice, input embedding output docs
110-
curl http://${host_ip}:7000/v1/retrieval \
111-
-X POST \
112-
-d @query \
113-
-H 'Content-Type: application/json' > rerank_query
114-
docker container logs retriever-redis-server
115-
116-
117-
# reranking microservice
118-
curl http://${host_ip}:8000/v1/reranking \
119-
-X POST \
120-
-d @rerank_query \
121-
-H 'Content-Type: application/json' > output
122-
docker container logs reranking-tei-server
123-
124-
# megaservice gateway
125-
docker container logs doc-index-retriever-server
126-
```
93+
```bash
94+
# redis vector store
95+
docker container logs redis-vector-db
96+
# dataprep to redis microservice, input document files
97+
docker container logs dataprep-redis-server
98+
99+
# embedding microservice
100+
curl http://${host_ip}:6000/v1/embeddings \
101+
-X POST \
102+
-d '{"text":"Explain the OPEA project"}' \
103+
-H 'Content-Type: application/json' > query
104+
docker container logs embedding-tei-server
105+
106+
# if you used tei-gaudi
107+
docker container logs tei-embedding-gaudi-server
108+
109+
# retriever microservice, input embedding output docs
110+
curl http://${host_ip}:7000/v1/retrieval \
111+
-X POST \
112+
-d @query \
113+
-H 'Content-Type: application/json' > rerank_query
114+
docker container logs retriever-redis-server
115+
116+
117+
# reranking microservice
118+
curl http://${host_ip}:8000/v1/reranking \
119+
-X POST \
120+
-d @rerank_query \
121+
-H 'Content-Type: application/json' > output
122+
docker container logs reranking-tei-server
123+
124+
# megaservice gateway
125+
docker container logs doc-index-retriever-server
126+
```

ProductivitySuite/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
OPEA Productivity Suite, is a powerful tool designed to streamline your workflow and boost productivity. This application leverages the cutting-edge OPEA microservices to provide a comprehensive suite of features that cater to the diverse needs of modern enterprises.
44

5-
### Key Features
5+
## Key Features
66

77
- Chat with Documents: Engage in intelligent conversations with your documents using our advanced RAG Capabilities. Our Retrieval-Augmented Generation (RAG) model allows you to ask questions, receive relevant information, and gain insights from your documents in real-time.
88

ProductivitySuite/docker/ui/react/README.md

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,72 @@
1-
<h1 align="center" id="title"> Productivity Suite React UI</h1>
1+
# Productivity Suite React UI
22

3-
### 📸 Project Screenshots
3+
## 📸 Project Screenshots
44

55
![project-screenshot](../../../assets/img/chat_qna_init.png)
66
![project-screenshot](../../../assets/img/Login_page.png)
77

8-
<h2>🧐 Features</h2>
8+
## 🧐 Features
99

1010
Here're some of the project's features:
1111

12-
#### CHAT QNA
12+
### CHAT QNA
1313

1414
- Start a Text Chat:Initiate a text chat with the ability to input written conversations, where the dialogue content can also be customized based on uploaded files.
1515
- Context Awareness: The AI assistant maintains the context of the conversation, understanding references to previous statements or questions. This allows for more natural and coherent exchanges.
1616

17-
##### DATA SOURCE
17+
#### DATA SOURCE
1818

19-
- The choice between uploading locally or copying a remote link. Chat according to uploaded knowledge base.
20-
- Uploaded File would get listed and user would be able add or remove file/links
19+
- The choice between uploading locally or copying a remote link. Chat according to uploaded knowledge base.
20+
- Uploaded File would get listed and user would be able add or remove file/links
2121

22-
###### Screen Shot
22+
##### Screen Shot
2323

24-
![project-screenshot](../../../assets/img/data_source.png)
24+
![project-screenshot](../../../assets/img/data_source.png)
2525

2626
- Clear: Clear the record of the current dialog box without retaining the contents of the dialog box.
2727
- Chat history: Historical chat records can still be retained after refreshing, making it easier for users to view the context.
2828
- Conversational Chat : The application maintains a history of the conversation, allowing users to review previous messages and the AI to refer back to earlier points in the dialogue when necessary.
29-
###### Screen Shots
30-
![project-screenshot](../../../assets/img/chat_qna_init.png)
31-
![project-screenshot](../../../assets/img/chatqna_with_conversation.png)
3229

33-
#### CODEGEN
30+
##### Screen Shots
31+
32+
![project-screenshot](../../../assets/img/chat_qna_init.png)
33+
![project-screenshot](../../../assets/img/chatqna_with_conversation.png)
34+
35+
### CODEGEN
3436

3537
- Generate code: generate the corresponding code based on the current user's input.
3638
###### Screen Shot
3739
![project-screenshot](../../../assets/img/codegen.png)
3840

39-
#### DOC SUMMARY
41+
### DOC SUMMARY
4042

4143
- Summarizing Uploaded Files: Upload files from their local device, then click 'Generate Summary' to summarize the content of the uploaded file. The summary will be displayed on the 'Summary' box.
4244
- Summarizing Text via Pasting: Paste the text to be summarized into the text box, then click 'Generate Summary' to produce a condensed summary of the content, which will be displayed in the 'Summary' box on the right.
4345
- Scroll to Bottom: The summarized content will automatically scroll to the bottom.
44-
###### Screen Shot
45-
![project-screenshot](../../../assets/img/doc_summary_paste.png)
46-
![project-screenshot](../../../assets/img/doc_summary_file.png)
4746

48-
#### FAQ Generator
47+
#### Screen Shot
48+
49+
![project-screenshot](../../../assets/img/doc_summary_paste.png)
50+
![project-screenshot](../../../assets/img/doc_summary_file.png)
51+
52+
### FAQ Generator
4953

5054
- Generate FAQs from Text via Pasting: Paste the text to into the text box, then click 'Generate FAQ' to produce a condensed FAQ of the content, which will be displayed in the 'FAQ' box below.
5155

5256
- Generate FAQs from Text via txt file Upload: Upload the file in the Upload bar, then click 'Generate FAQ' to produce a condensed FAQ of the content, which will be displayed in the 'FAQ' box below.
53-
###### Screen Shot
54-
![project-screenshot](../../../assets/img/faq_generator.png)
5557

56-
<h2>🛠️ Get it Running:</h2>
58+
#### Screen Shot
59+
60+
![project-screenshot](../../../assets/img/faq_generator.png)
61+
62+
## 🛠️ Get it Running:
5763

5864
1. Clone the repo.
5965

6066
2. cd command to the current folder.
6167

6268
3. create a .env file and add the following variables and values.
63-
```env
69+
```
6470
VITE_BACKEND_SERVICE_ENDPOINT_CHATQNA=''
6571
VITE_BACKEND_SERVICE_ENDPOINT_CODEGEN=''
6672
VITE_BACKEND_SERVICE_ENDPOINT_DOCSUM=''

0 commit comments

Comments
 (0)