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 |
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 | |
import pandas as pd | |
import textwrap | |
import yaml | |
from crewai import Agent, Task, Crew, Process, LLM | |
from crewai.knowledge.source.string_knowledge_source import StringKnowledgeSource | |
from crewai.knowledge.source.pdf_knowledge_source import PDFKnowledgeSource | |
# Create a knowledge source | |
from crewai_tools import PDFSearchTool, FileReadTool |
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.
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 url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap'); | |
.CodeMirror pre, .CodeMirror-dialog, .CodeMirror-dialog .CodeMirror-search-field, .terminal-app .terminal { | |
font-family: 'Inter'; | |
font-size: 12pt; | |
} | |
body { | |
font-family: 'Inter', sans-serif !important; | |
color: #263333; /* change to the color you want */ | |
} | |
h1 { |
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 url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap'); | |
.CodeMirror pre, .CodeMirror-dialog, .CodeMirror-dialog .CodeMirror-search-field, .terminal-app .terminal { | |
font-family: 'Inter'; | |
font-size: 12pt; | |
} | |
body { | |
font-family: 'Inter', sans-serif !important; | |
color: #263333; /* change to the color you want */ | |
} | |
h1 { |
NewerOlder