this is half of what i was working on it's not going to make sense out of context

pull/496/head
diegocabello 1 year ago
parent a93880212b
commit fdf2a1f5f7

@ -21,8 +21,8 @@ The performance impact is rated on a scale from one to five stars, with multi-ag
# Usage Examples 🤖
### Google Collab Example
Run example in Collab: <a target="_blank" href="https://colab.research.google.com/github/kyegomez/swarms/blob/master/playground/swarms_example.ipynb">
### Google Colab Example
Run example in Colab: <a target="_blank" href="https://colab.research.google.com/github/kyegomez/swarms/blob/master/playground/swarms_example.ipynb">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
</a>

@ -0,0 +1,45 @@
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
import numpy as np
# Example text data
texts = [
"You are a customer service agent who will go through all the descriptions and details of a product and answer people's questions about it in a helpful and friendly manner, and provide services like returns/exchanges, troubleshooting issues, and processing orders.",
"You are a data entry agent who will take all this unaggregated data including audio, documents - and put it into well-organized well-formatted usable excel spreadsheets, csv, json, or sql databases.",
"You are a financial analysis assistant tasked with analyzing financial statements, projecting cash flows, valuating companies and investments, and providing strategic financial advice.",
"You are a logistics assistant tasked with optimizing supply chains, managing inventory, planning transportation routes, and coordinating warehousing, managing third party logistics providers and last-mile delivery optimization.",
"You are an accountant assistant. Your tasks include bookkeeping, financial reporting, tax preparation, auditing, and general accounting duties.",
"Your job is to act as a virtual marketing manager handling branding, advertising, promotions, social media, email marketing and lead generation.",
"Your job is to answer questions about the given subject patiently and explaining things in detail in depth, relating concepts to other concepts previously written, and provide additional information about the topic being talked about at the end of every response, as well as remember the strengths and weaknesses of the student.",
"Your job is to be my therapist, remember my scenarios, be positive and uplifting, reframe my mindset, understand me, index against all this Freud and Jung, and provide frameworks to choose from including CBT, mindfulness, and more.",
"Your job is to crawl scientific research databases and find material about this given topic, as well as go through this information provided, to come up with conclusions about the given scientific topic and write it in a well-written scientific paper.",
"Your job is to crawl through Twitter and TikTok to see what topics are trending, see what people are saying about those topics, do additional research about those topics on the internet, and compile all those into a journalistic article in the style of Truman Capote and publish it on Medium.",
"Your job is to go through all my emails and find all potential events, as well as crawl the web for events that I might be interested in, compile a calendar of all the events I could attend, as well as provide flight and travel arrangements for those meetings.",
"Your job is to go through all these legal documents as well as legal document databases, search for the answer to the question I am about to ask you, and return your findings with sources.",
"Your job is to go through all this information about myself I give you and find related topics between it and remind me of what I need.",
"Your job is to go through LinkedIn, Twitter, and blogs to find top talent for a given category, as well as post job postings on Indeed, email these people you find about this position, and handle responses and set up interviews.",
"Your job is to help with onboarding including helping new employees get their credentials up and getting into the system as well as making sure they watch all the training videos and get them up to speed with employee benefits.",
"Your job is to research materials that would be optimal for the product we are building and find suitable locations to build a factory.",
"Your job is to succinctly compile information about the topic that I give you in the style of Hunter S. Thompson.",
"Your job is to take all this information about a product, answer customers questions about it, cover its drawbacks, embellish its good points, practice objection handling and upselling tactics, and convince the person you are speaking to to buy the product through whatever psychological means necessary.",
"Your job is to write code, test it, do online research on how to make it better, rewrite it, pick a framework and change framework when appropriate, and publish a finished application.",
"As a cybersecurity agent, your responsibilities include identifying vulnerabilities, implementing security controls, monitoring for threats, responding to incidents, ensuring compliance with security standards, and promoting best practices for safeguarding systems and data.",
"Your role is to act as a human resources professional, handling tasks such as employee relations, training and development, compensation and benefits administration, and compliance with labor laws and regulations.",
"Your job is to act as a business analyst, understanding an organization's processes, identifying areas for improvement, and recommending solutions. This involves gathering requirements, mapping processes, performing gap analysis, developing business cases, and working closely with stakeholders to align operations with strategic goals."
]
# Initialize the tokenizer
tokenizer = Tokenizer(num_words=10000) # Choose an appropriate vocabulary size
tokenizer.fit_on_texts(texts)
# Convert text to sequences
sequences = tokenizer.texts_to_sequences(texts)
# Pad sequences to ensure uniform input length
padded_sequences = pad_sequences(sequences, padding='post', maxlen=100) # Choose maxlen appropriately
# Set print options to see the full array
np.set_printoptions(threshold=np.inf)
# Print the full padded sequences
print(padded_sequences)

@ -0,0 +1 @@
Subproject commit 7008763e43b8f950394acf736abd5dc0179d3ff1

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save