Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.1.0 #211

Merged
merged 51 commits into from
Apr 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
c8404cd
Add dataset registry
steffencruz Mar 17, 2024
d285e08
Add task-dataset registry, which will enable multi-dataset tasks
steffencruz Mar 17, 2024
21beebc
Use registry for task creation
steffencruz Mar 17, 2024
58bdbd8
Add arbitrary selector for improved control
steffencruz Mar 17, 2024
ed2d07b
Merge branch 'pre-staging' into features/registry
bkb2135 Apr 8, 2024
35878b0
Resolve circular imports
bkb2135 Apr 8, 2024
35a53b1
Resolve circular imports in prompting/conversation.py
bkb2135 Apr 8, 2024
df1885d
Create separate task_registry file
bkb2135 Apr 8, 2024
dfb65a2
Remove llm import from init
bkb2135 Apr 8, 2024
cd9f592
Import TASKS and DATASETS
bkb2135 Apr 8, 2024
dc00d3b
Add Mock Task to Registry
bkb2135 Apr 8, 2024
a1eb07b
Add registry unit tests
bkb2135 Apr 8, 2024
55121b2
Add Chattensor System Prompt
bkb2135 Apr 8, 2024
b807ccc
Instantiate the datasets before task creation
bkb2135 Apr 9, 2024
6bb8dd4
Set Bittensor to 6.10.1
bkb2135 Apr 9, 2024
6f2dda4
Use class.name rather than hardcoded strings
bkb2135 Apr 10, 2024
1fb74fe
Rename date_qa
bkb2135 Apr 10, 2024
7f3d257
Explicitly delete other reference prompts
bkb2135 Apr 10, 2024
8cb53bd
Update Registry
steffencruz Apr 10, 2024
c014ff5
Simplify install.sh
bkb2135 Apr 10, 2024
9aa843e
Update qa name
steffencruz Apr 10, 2024
254bfa7
Update unit tests
bkb2135 Apr 10, 2024
ba7712b
Support Python 3.9-12
bkb2135 Apr 12, 2024
62ca944
Update python-package.yml
bkb2135 Apr 14, 2024
58aa884
Merge pull request #197 from opentensor/Bump-Bittensor-Version
bkb2135 Apr 15, 2024
a41ff1a
Remove print statements
bkb2135 Apr 15, 2024
f06994a
Update test_registry.py
bkb2135 Apr 15, 2024
be61a87
Merge pull request #162 from opentensor/features/registry
bkb2135 Apr 15, 2024
01d2fee
Merge pull request #194 from opentensor/features/chattensor_system_pr…
bkb2135 Apr 15, 2024
aa833b3
Add generic instruction task
bkb2135 Apr 15, 2024
9bd93ff
Add generic instruction dataset
bkb2135 Apr 15, 2024
8241395
Add Generic Instruction
bkb2135 Apr 15, 2024
e04af62
Fix Unit Tests
bkb2135 Apr 15, 2024
a7d2906
Update config
steffencruz Apr 16, 2024
4a3aa9c
Add back reference prompt
steffencruz Apr 16, 2024
f1fb5e1
Make info['source'] a string
steffencruz Apr 16, 2024
05351fb
Rename generic instruction to generic
steffencruz Apr 17, 2024
d5ba6f3
Update Config
steffencruz Apr 17, 2024
50d5e94
Update validator.py
bkb2135 Apr 17, 2024
1b75f13
Remove mock task from config
bkb2135 Apr 17, 2024
350716b
Update config.py
bkb2135 Apr 17, 2024
a59dc38
Merge pull request #202 from opentensor/features/generic-instruction-…
steffencruz Apr 17, 2024
d15784d
Update relevance scoring
bkb2135 Apr 18, 2024
6f57d1e
Update generic_instruction scoring
bkb2135 Apr 18, 2024
c7df6f4
Bump version to 2.1
steffencruz Apr 18, 2024
6168639
Merge pull request #206 from opentensor/hotfix/adjust-generic-scoring
steffencruz Apr 18, 2024
3b5d4b8
Merge pull request #208 from opentensor/version-2.1.0
steffencruz Apr 18, 2024
9e03a06
Remove Mock from registry
steffencruz Apr 18, 2024
773a3d4
Remove source from math
bkb2135 Apr 18, 2024
17ef4f6
Merge pull request #210 from opentensor/hotfix/remove-mock-from-registry
steffencruz Apr 18, 2024
8da8358
Merge pull request #204 from opentensor/pre-staging
steffencruz Apr 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add Chattensor System Prompt
  • Loading branch information
bkb2135 committed Apr 8, 2024
commit 55121b25d5d48db6a15eca06fa351b1bea254e0a
13 changes: 11 additions & 2 deletions prompting/tasks/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@
from prompting.llms import HuggingFaceLLM, vLLM_LLM, BasePipeline
from prompting.cleaners.cleaner import CleanerPipeline

CHATTENSOR_SYSTEM_PROMPT = """
The assistant is Chattensor, created by Macrocosmos. The current date is {date}.
Chattensor is a distributed intelligence, powered by Bittensor. It is a hivemind composed of 1000 highly skilled and specialized LLMs working together to provide the best possible answers to human queries. Within Chattenor, each LLM has access to the internet, APIs and tools to ensure that responses are current and factually accurate. It should give concise responses to very simple questions, but provide thorough responses to more complex and open-ended questions.
It is happy to help with writing, analysis, question answering, math, coding, and all sorts of other tasks. It uses markdown for coding. Where applicable, Chattensor will include references to credible sources to support its answers.
It does not mention this information about itself unless the information is directly pertinent to the human's query.
"""


def make_system_prompt():
return CHATTENSOR_SYSTEM_PROMPT.format(date=time.strftime("%B %d, %Y"))
class TaskEvaluationType(Enum):
REWARD_STACK = "reward"
FILTER_STACK = "filter"
Expand Down Expand Up @@ -85,7 +94,7 @@ def generate_reference(self, pipeline: BasePipeline, clean=True) -> str:
bt.logging.info("🤖 Generating reference...")

self.reference = self.generate(
system=self.reference_system_prompt,
system=make_system_prompt(),
prompt=self.reference_prompt,
pipeline=pipeline,
clean=clean,
Expand All @@ -100,7 +109,7 @@ def generate_query(self, pipeline: BasePipeline, clean=True) -> str:
if not self.static_query:
bt.logging.info("🤖 Generating query...")
self.query = self.generate(
system=self.query_system_prompt,
system=self.query_system_prompt, #Could possibly add the chattensor system prompt to query but I don't think it adds anything
prompt=self.query_prompt,
pipeline=pipeline,
clean=clean,
Expand Down
Loading