rajkstats commited on
Commit
12413e3
Β·
1 Parent(s): b3ffc82

Updated Readme

Browse files
Files changed (3) hide show
  1. README.md +8 -6
  2. chainlit.md +9 -5
  3. fda-drugs-indexer/main.py +18 -3
README.md CHANGED
@@ -21,7 +21,7 @@ PharmAssistAI revolutionizes how pharmacy professionals and students approach le
21
  - **Interactive Learning**: Engage with AI-generated related questions to deepen understanding and knowledge retention.
22
  - **Research Linkage**: Automatically fetch and link relevant academic papers from PubMed, enhancing the depth of available information and supporting academic research.
23
 
24
- ## Advanced Capabilities
25
 
26
  - **Real-Time Feedback with LangSmith**: Use LangSmith to incorporate real-time feedback and custom evaluations. This system ensures that the AI's responses are not only accurate but also contextually aware and user-focused.
27
  - **Custom Evaluators for Enhanced Accuracy**: Deploy custom evaluators like PharmAssistEvaluator to ensure responses meet high standards of relevance, safety, and perception as human-generated versus AI-generated.
@@ -31,9 +31,14 @@ PharmAssistAI revolutionizes how pharmacy professionals and students approach le
31
  1. **Query Input**: Pharmacists type in their questions directly.
32
  2. **Data Retrieval**: Relevant data is fetched from comprehensive datasets, including automated searches of PubMed for related academic papers.
33
  3. **Data Presentation**: Data is displayed in an easily digestible format.
34
- 4. **Summary Generation**: Summaries of the data are created using GenAI technologies.
35
  5. **Question Suggestion**: Suggest related questions to encourage further exploration.
36
 
 
 
 
 
 
37
  ## Hugging Face App Demo
38
 
39
 
@@ -64,7 +69,6 @@ Explore the effectiveness and interaction tracking of LangSmith in PharmAssistAI
64
  ![Metrics Dashboard](https://i.imgur.com/H9Q8OKj.png)
65
 
66
 
67
-
68
  ## Development Roadmap
69
 
70
  - Integrate and index the complete FDA Drug Labeling and Adverse Events datasets.
@@ -81,6 +85,4 @@ Simply enter your question about any FDA-approved drug in our chat interface, an
81
  We value your input and invite you to help us enhance PharmAssistAI:
82
 
83
  - πŸ› [Report an issue](https://github.com/rajkstats/pharmassistai/issues) on GitHub for technical issues or feature suggestions.
84
- - πŸ“§ Contact us at [[email protected]](mailto:[email protected]) for direct support or inquiries.
85
-
86
- Join us in transforming pharmaceutical research and education through advanced AI technology!
 
21
  - **Interactive Learning**: Engage with AI-generated related questions to deepen understanding and knowledge retention.
22
  - **Research Linkage**: Automatically fetch and link relevant academic papers from PubMed, enhancing the depth of available information and supporting academic research.
23
 
24
+ ## Monitoring and Evaluation
25
 
26
  - **Real-Time Feedback with LangSmith**: Use LangSmith to incorporate real-time feedback and custom evaluations. This system ensures that the AI's responses are not only accurate but also contextually aware and user-focused.
27
  - **Custom Evaluators for Enhanced Accuracy**: Deploy custom evaluators like PharmAssistEvaluator to ensure responses meet high standards of relevance, safety, and perception as human-generated versus AI-generated.
 
31
  1. **Query Input**: Pharmacists type in their questions directly.
32
  2. **Data Retrieval**: Relevant data is fetched from comprehensive datasets, including automated searches of PubMed for related academic papers.
33
  3. **Data Presentation**: Data is displayed in an easily digestible format.
34
+ 4. **Summary Generation**: Summaries of the data are created using GenAI
35
  5. **Question Suggestion**: Suggest related questions to encourage further exploration.
36
 
37
+ ## Architecture
38
+
39
+ ![RAG Architecture](https://i.imgur.com/QPNipiI.png)
40
+
41
+
42
  ## Hugging Face App Demo
43
 
44
 
 
69
  ![Metrics Dashboard](https://i.imgur.com/H9Q8OKj.png)
70
 
71
 
 
72
  ## Development Roadmap
73
 
74
  - Integrate and index the complete FDA Drug Labeling and Adverse Events datasets.
 
85
  We value your input and invite you to help us enhance PharmAssistAI:
86
 
87
  - πŸ› [Report an issue](https://github.com/rajkstats/pharmassistai/issues) on GitHub for technical issues or feature suggestions.
88
+ - πŸ“§ Contact us at [[email protected]](mailto:[email protected]) for direct support or inquiries.
 
 
chainlit.md CHANGED
@@ -10,7 +10,7 @@ PharmAssistAI revolutionizes how pharmacy professionals and students approach le
10
  - **Interactive Learning**: Engage with AI-generated related questions to deepen understanding and knowledge retention.
11
  - **Research Linkage**: Automatically fetch and link relevant academic papers from PubMed, enhancing the depth of available information and supporting academic research.
12
 
13
- ## Advanced Capabilities
14
 
15
  - **Real-Time Feedback with LangSmith**: Use LangSmith to incorporate real-time feedback and custom evaluations. This system ensures that the AI's responses are not only accurate but also contextually aware and user-focused.
16
  - **Custom Evaluators for Enhanced Accuracy**: Deploy custom evaluators like PharmAssistEvaluator to ensure responses meet high standards of relevance, safety, and perception as human-generated versus AI-generated.
@@ -20,9 +20,15 @@ PharmAssistAI revolutionizes how pharmacy professionals and students approach le
20
  1. **Query Input**: Pharmacists type in their questions directly.
21
  2. **Data Retrieval**: Relevant data is fetched from comprehensive datasets, including automated searches of PubMed for related academic papers.
22
  3. **Data Presentation**: Data is displayed in an easily digestible format.
23
- 4. **Summary Generation**: Summaries of the data are created using GenAI technologies.
24
  5. **Question Suggestion**: Suggest related questions to encourage further exploration.
25
 
 
 
 
 
 
 
26
  ## Hugging Face App Demo
27
 
28
 
@@ -69,6 +75,4 @@ Simply enter your question about any FDA-approved drug in our chat interface, an
69
  We value your input and invite you to help us enhance PharmAssistAI:
70
 
71
  - πŸ› [Report an issue](https://github.com/rajkstats/pharmassistai/issues) on GitHub for technical issues or feature suggestions.
72
- - πŸ“§ Contact us at [[email protected]](mailto:[email protected]) for direct support or inquiries.
73
-
74
- Join us in transforming pharmaceutical research and education through advanced AI technology!
 
10
  - **Interactive Learning**: Engage with AI-generated related questions to deepen understanding and knowledge retention.
11
  - **Research Linkage**: Automatically fetch and link relevant academic papers from PubMed, enhancing the depth of available information and supporting academic research.
12
 
13
+ ## Monitoring and Evaluation
14
 
15
  - **Real-Time Feedback with LangSmith**: Use LangSmith to incorporate real-time feedback and custom evaluations. This system ensures that the AI's responses are not only accurate but also contextually aware and user-focused.
16
  - **Custom Evaluators for Enhanced Accuracy**: Deploy custom evaluators like PharmAssistEvaluator to ensure responses meet high standards of relevance, safety, and perception as human-generated versus AI-generated.
 
20
  1. **Query Input**: Pharmacists type in their questions directly.
21
  2. **Data Retrieval**: Relevant data is fetched from comprehensive datasets, including automated searches of PubMed for related academic papers.
22
  3. **Data Presentation**: Data is displayed in an easily digestible format.
23
+ 4. **Summary Generation**: Summaries of the data are created using GenAI
24
  5. **Question Suggestion**: Suggest related questions to encourage further exploration.
25
 
26
+ ## Architecture
27
+
28
+ ![RAG Architecture](https://i.imgur.com/QPNipiI.png)
29
+
30
+
31
+
32
  ## Hugging Face App Demo
33
 
34
 
 
75
  We value your input and invite you to help us enhance PharmAssistAI:
76
 
77
  - πŸ› [Report an issue](https://github.com/rajkstats/pharmassistai/issues) on GitHub for technical issues or feature suggestions.
78
+ - πŸ“§ Contact us at [[email protected]](mailto:[email protected]) for direct support or inquiries.
 
 
fda-drugs-indexer/main.py CHANGED
@@ -1,13 +1,28 @@
 
1
  # python3 -m venv myenv
2
  # source myenv/bin/activate
 
 
3
  # uvicorn main:app --reload
 
 
4
  # nohup uvicorn main:app --host 0.0.0.0 --port 8000 &
 
 
5
  # lsof -i :8000
 
 
6
  # kill -9 2540
7
- # you can call this endpoint from Postman (or any other HTTP client) by sending a POST request to http://your_server_url/index_fda_drugs?url=https://download.open.fda.gov/drug/label/drug-label-0001-of-0012.json.zip, where the URL is passed as a query parameter.
8
- # Local: http://127.0.0.1:8000/index_fda_drugs?url=https://download.open.fda.gov/drug/label/drug-label-0001-of-0012.json.zip
 
 
 
 
 
 
 
9
  # curl -X POST "http://127.0.0.1:8000/index_fda_drugs?url=https://download.open.fda.gov/drug/label/drug-label-0001-of-0012.json.zip"
10
- # curl --interface <network_interface> -X POST "http://0.0.0.0:8000/index_fda_drugs?url=https://download.open.fda.gov/drug/label/drug-label-0001-of-0012.json.zip"
11
 
12
  import asyncio
13
  import time
 
1
+ # Set up a Python virtual environment and activate it:
2
  # python3 -m venv myenv
3
  # source myenv/bin/activate
4
+
5
+ # Run the FastAPI application with live reload for development:
6
  # uvicorn main:app --reload
7
+
8
+ # Run the FastAPI application in the background for production:
9
  # nohup uvicorn main:app --host 0.0.0.0 --port 8000 &
10
+
11
+ # Check which process is using a specific port (8000 in this case):
12
  # lsof -i :8000
13
+
14
+ # Terminate a process using a specific port by its PID (e.g., PID 2540):
15
  # kill -9 2540
16
+
17
+ # Example of a POST request from Postman or any other HTTP client:
18
+ # This request indexes data from a specified URL:
19
+ # You can call this endpoint by sending a POST request to:
20
+ # http://your_server_url/index_fda_drugs?url=https://download.open.fda.gov/drug/label/drug-label-0001-of-0012.json.zip
21
+ # where the URL is passed as a query parameter.
22
+
23
+ # Examples for testing the endpoint locally using curl:
24
+ # Local URL testing with curl:
25
  # curl -X POST "http://127.0.0.1:8000/index_fda_drugs?url=https://download.open.fda.gov/drug/label/drug-label-0001-of-0012.json.zip"
 
26
 
27
  import asyncio
28
  import time