This file contains 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
Here is the code and results of a test | |
<code> | |
#https://github.com/fw-ai/cookbook/blob/main/examples/rag/mongo_basic.ipynb | |
key="whatever" | |
model_name="accounts/fireworks/models/mixtral-8x7b-instruct" | |
prompt = """ | |
The user message will contain a block of text drawn from a scientific paper. Please analyze this text and perform the following steps: | |
1. Extract Named Entities: Identify named entities in the text which could be of three types - Drug, Disease, or Other. An entity should be a single proper noun or a term that is clearly defined within the scope of Drugs and Diseases. Entity names should be short and focused, containing no more than 5 essential words. If an entity name cannot be expressed in 5 words or less, it should be ignored. |
This file contains 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
## Text 1 - part of Text 3 | |
NALP3, also known as cryopyrin, has been implicated in crystal-associated diseases such as gout and silicosis. Mice fed the diet high in soluble oxalate demonstrated increased NALP3 expression in the kidney. | |
{ | |
"NALP3": { | |
"_ENTITY_TYPE": "Drug" | |
}, | |
"cryopyrin": { | |
"_ENTITY_TYPE": "Drug", | |
"abbreviation of": "NALP3" |
This file contains 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
## Text 1 | |
NALP3, also known as cryopyrin, has been implicated in crystal-associated diseases such as gout and silicosis. Mice fed the diet high in soluble oxalate demonstrated increased NALP3 expression in the kidney. | |
{ | |
"NALP3": { | |
"_ENTITY_TYPE": "Drug" | |
}, | |
"cryopyrin": { | |
"abbreviation": "NALP3", | |
"_ENTITY_TYPE": "Drug" |
This file contains 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
Here is the code and results of a test | |
<code> | |
#https://github.com/fw-ai/cookbook/blob/main/examples/rag/mongo_basic.ipynb | |
key="whatever" | |
model_name="accounts/fireworks/models/mixtral-8x7b-instruct" | |
prompt = """ | |
The user message will contain a block of text drawn from a scientific paper. Please analyze this text and perform the following steps: | |
1. Extract Named Entities: Identify named entities in the text which could be of three types - Drug, Disease, or Other. An entity should be a single proper noun or a term that is clearly defined within the scope of Drugs and Diseases. Entity names should be short and focused, containing no more than 5 essential words. If an entity name cannot be expressed in 5 words or less, it should be ignored. |
This file contains 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
DO | |
$do$ | |
BEGIN | |
IF NOT EXISTS ( | |
SELECT | |
FROM pg_catalog.pg_roles | |
WHERE rolname = 'tq_proxy') THEN | |
CREATE ROLE tq_proxy INHERIT; | |
END IF; |
This file contains 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
{ | |
"corefs": [ | |
{ | |
"chainId": "CHAIN8", | |
"cargo": [ | |
{ | |
"chain": "Saccharomyces cerevisiae var. boulardii", | |
"sentence": "1" | |
}, | |
{ |
This file contains 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
{ | |
"corefs": [ | |
{ | |
"chainId": "CHAIN35", | |
"cargo": [ | |
{ | |
"chain": "S. cerevisiae var.", | |
"sentence": "1" | |
}, | |
{ |
This file contains 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
{ | |
"corefs": [ | |
{ | |
"chainId": "CHAIN35", | |
"cargo": [ | |
{ | |
"chain": "S. cerevisiae var.", | |
"sentence": "1" | |
}, | |
{ |
This file contains 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
{ | |
"corefs": [ | |
{ | |
"chainId": "CHAIN35", | |
"cargo": [ | |
{ | |
"chain": "S. cerevisiae var.", | |
"sentence": "1" | |
}, | |
{ |
This file contains 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
{ | |
"corefs": [ | |
{ | |
"chainId": "CHAIN35", | |
"cargo": [ | |
{ | |
"chain": "S. cerevisiae var.", | |
"sentence": "1" | |
}, | |
{ |
NewerOlder