This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Healthcare Feedback Dataset for SetFit | |
| # 90 examples (15 per class) - suitable for few-shot learning | |
| # Optimized label names for ML | |
| LABEL_MAPPING = { | |
| 0: "access_availability", | |
| 1: "information_provision", | |
| 2: "privacy_confidentiality", | |
| 3: "continuity_care", | |
| 4: "clinical_communication", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import spacy | |
| from spacy.matcher import Matcher | |
| import math | |
| import pandas as pd | |
| # ============================================================================ | |
| # Installation Requirements: | |
| # 1. pip install spacy | |
| # 2. python -m spacy download en_core_web_sm | |
| # ============================================================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| import os | |
| import re | |
| from nltk import pos_tag, word_tokenize | |
| from sklearn.preprocessing import MinMaxScaler | |
| from sklearn.metrics import pairwise_distances | |
| import warnings | |
| warnings.filterwarnings("ignore") | |
| import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import toml | |
| from crewai_tools import BaseTool | |
| from typing import ClassVar, Union, Dict, Any, List | |
| import requests | |
| # Load the TOML file | |
| with open("notioncrew/config_secrets.toml", "r") as f: | |
| config_secrets = toml.load(f) | |
| # Load environment variables from streamlit secrets |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import spacy | |
| import pandas as pd | |
| from sklearn.preprocessing import MinMaxScaler | |
| from langchain.tools import BaseTool | |
| from typing import Optional, Union, List | |
| from langchain.callbacks.manager import CallbackManagerForToolRun, AsyncCallbackManagerForToolRun | |
| class DataPreprocessingTool(BaseTool): | |
| name = "DataPreprocessingTool" | |
| description = "A tool for preprocessing and structuring unstructured data." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In this walkthrough we will see how to use Pinecone for semantic search. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| from langchain.schema import Document | |
| from langchain_community.embeddings import OllamaEmbeddings | |
| from langchain_community.vectorstores import Chroma | |
| from tqdm import tqdm |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder