jitendra.kasaudhan commited on
Commit
b47a98a
·
1 Parent(s): 6c97ae9

Use chromadb to store vector embeddings of static product data

Browse files
Files changed (4) hide show
  1. Dockerfile +1 -1
  2. app.py +66 -4
  3. data/bestbuy-dataset-products.json +1 -0
  4. requirements.txt +3 -1
Dockerfile CHANGED
@@ -24,4 +24,4 @@ USER myuser
24
 
25
  # Specify the command to run when the container starts
26
  CMD ["chainlit", "run", "app.py", "--port", "7860"]
27
- # chainlit run app.py
 
24
 
25
  # Specify the command to run when the container starts
26
  CMD ["chainlit", "run", "app.py", "--port", "7860"]
27
+ # chainlit run app.py --port 7860
app.py CHANGED
@@ -1,5 +1,16 @@
1
  from langchain import PromptTemplate, OpenAI, LLMChain
 
 
 
 
 
 
 
 
2
  import chainlit as cl
 
 
 
3
 
4
  template = """Question: {question}
5
 
@@ -9,11 +20,59 @@ Answer: Let's think step by step."""
9
  @cl.on_chat_start
10
  def main():
11
  # Instantiate the chain for that user session
12
- prompt = PromptTemplate(template=template, input_variables=["question"])
13
- llm_chain = LLMChain(prompt=prompt, llm=OpenAI(temperature=0), verbose=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  # Store the chain in the user session
16
- cl.user_session.set("llm_chain", llm_chain)
17
 
18
 
19
  @cl.on_message
@@ -25,7 +84,10 @@ async def main(message: str):
25
  res = await llm_chain.acall(message, callbacks=[cl.AsyncLangchainCallbackHandler()])
26
 
27
  # Do any post processing here
 
 
28
 
 
29
  # "res" is a Dict. For this chain, we get the response by reading the "text" key.
30
  # This varies from chain to chain, you should check which key to read.
31
- await cl.Message(content=res["text"]).send()
 
1
  from langchain import PromptTemplate, OpenAI, LLMChain
2
+ from langchain.chat_models import ChatOpenAI
3
+ from langchain.embeddings.openai import OpenAIEmbeddings
4
+ from langchain.text_splitter import RecursiveCharacterTextSplitter
5
+ from langchain.vectorstores import Chroma
6
+ from langchain.chains import RetrievalQAWithSourcesChain
7
+ from langchain.text_splitter import RecursiveCharacterTextSplitter
8
+ from langchain.docstore.document import Document
9
+
10
  import chainlit as cl
11
+ from chainlit import user_session
12
+
13
+ persist_directory = "vector_db"
14
 
15
  template = """Question: {question}
16
 
 
20
  @cl.on_chat_start
21
  def main():
22
  # Instantiate the chain for that user session
23
+ # prompt = PromptTemplate(template=template, input_variables=["question"])
24
+ # llm_chain = LLMChain(prompt=prompt, llm=OpenAI(temperature=0), verbose=True)
25
+
26
+ # Create a Chroma vector store
27
+ embeddings = OpenAIEmbeddings(
28
+ disallowed_special=(),
29
+ )
30
+
31
+ products_data = [
32
+ {"sku":43900, "name":"Duracell - AAA Batteries (4-Pack)","product_spec_in_natural_language":"Product with name: Duracell - AAA Batteries (4-Pack) belongs to multiple categories: Connected Home & Housewares, Housewares, Household Batteries.\n Description of the product is following:\n product desctiption: Compatible with select electronic devices; AAA size; DURALOCK Power Preserve technology; 4-pack.\n\n Manufacturer of the product is Duracell and price is 5.49.\n ", "url": "a.com"},
33
+ {"sku":48530,"name":"Duracell - AA 1.5V CopperTop Batteries (4-Pack)","product_spec_in_natural_language":"Product with name: Duracell - AA 1.5V CopperTop Batteries (4-Pack) belongs to multiple categories: Connected Home & Housewares, Housewares, Household Batteries.\n Description of the product is following:\n product desctiption: Long-lasting energy; DURALOCK Power Preserve technology; for toys, clocks, radios, games, remotes, PDAs and more.\n\n Manufacturer of the product is Duracell and price is 5.49.\n ","url": "b.com"},
34
+ {"sku":127687,"name":"Duracell - AA Batteries (8-Pack)","product_spec_in_natural_language":"Product with name: Duracell - AA Batteries (8-Pack) belongs to multiple categories: Connected Home & Housewares, Housewares, Household Batteries.\n Description of the product is following:\n product desctiption: Compatible with select electronic devices; AA size; DURALOCK Power Preserve technology; 8-pack.\n\n Manufacturer of the product is Duracell and price is 7.49.\n ","url": "c.com"}
35
+ ]
36
+
37
+ text_splitter = RecursiveCharacterTextSplitter(
38
+ chunk_size = 1000,
39
+ chunk_overlap = 20,
40
+ length_function = len,
41
+ )
42
+ for item in products_data:
43
+ product_summary_data = item["product_spec_in_natural_language"]
44
+ docs = [
45
+ Document(page_content=product_summary_data,
46
+ metadata={"source": item["sku"], "url": item["url"]})
47
+ ]
48
+
49
+ documents = text_splitter.split_documents(docs)
50
+ vectordb = Chroma.from_documents(documents=documents, embedding=embeddings, persist_directory=persist_directory)
51
+
52
+ vectordb.persist()
53
+
54
+ # chroma_data_collection= {
55
+ # # embeddings=[[1.2, 2.3, 4.5], [6.7, 8.2, 9.2]],
56
+ # documents: [products_data[0]["product_spec_in_natural_language"], products_data[1]["product_spec_in_natural_language"], products_data[2]["product_spec_in_natural_language"]],
57
+ # metadatas: [{"source": "43900"}, {"source": "48530"}, {"source": "127687"}],
58
+ # ids: ["43900", "48530", "127687"]
59
+ # }
60
+
61
+ # vectordb = None
62
+
63
+ # Create a chain that uses the Chroma vector store
64
+ chain = RetrievalQAWithSourcesChain.from_chain_type(
65
+ ChatOpenAI(
66
+ model_name="gpt-3.5-turbo",
67
+ temperature=0,
68
+ ),
69
+ chain_type="stuff",
70
+ retriever=vectordb.as_retriever(),
71
+ return_source_documents=True,
72
+ )
73
 
74
  # Store the chain in the user session
75
+ cl.user_session.set("llm_chain", chain)
76
 
77
 
78
  @cl.on_message
 
84
  res = await llm_chain.acall(message, callbacks=[cl.AsyncLangchainCallbackHandler()])
85
 
86
  # Do any post processing here
87
+ print(res)
88
+ answer = res["answer"]
89
 
90
+
91
  # "res" is a Dict. For this chain, we get the response by reading the "text" key.
92
  # This varies from chain to chain, you should check which key to read.
93
+ await cl.Message(content=answer).send()
data/bestbuy-dataset-products.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"sku":43900,"name":"Duracell - AAA Batteries (4-Pack)","product_spec_in_natural_language":"Product with name: Duracell - AAA Batteries (4-Pack) belongs to multiple categories: Connected Home & Housewares, Housewares, Household Batteries.\n Description of the product is following:\n product desctiption: Compatible with select electronic devices; AAA size; DURALOCK Power Preserve technology; 4-pack.\n\n Manufacturer of the product is Duracell and price is 5.49.\n "},{"sku":48530,"name":"Duracell - AA 1.5V CopperTop Batteries (4-Pack)","product_spec_in_natural_language":"Product with name: Duracell - AA 1.5V CopperTop Batteries (4-Pack) belongs to multiple categories: Connected Home & Housewares, Housewares, Household Batteries.\n Description of the product is following:\n product desctiption: Long-lasting energy; DURALOCK Power Preserve technology; for toys, clocks, radios, games, remotes, PDAs and more.\n\n Manufacturer of the product is Duracell and price is 5.49.\n "},{"sku":127687,"name":"Duracell - AA Batteries (8-Pack)","product_spec_in_natural_language":"Product with name: Duracell - AA Batteries (8-Pack) belongs to multiple categories: Connected Home & Housewares, Housewares, Household Batteries.\n Description of the product is following:\n product desctiption: Compatible with select electronic devices; AA size; DURALOCK Power Preserve technology; 8-pack.\n\n Manufacturer of the product is Duracell and price is 7.49.\n "},{"sku":150115,"name":"Energizer - MAX Batteries AA (4-Pack)","product_spec_in_natural_language":"Product with name: Energizer - MAX Batteries AA (4-Pack) belongs to multiple categories: Connected Home & Housewares, Housewares, Household Batteries.\n Description of the product is following:\n product desctiption: 4-pack AA alkaline batteries; battery tester included.\n\n Manufacturer of the product is Energizer and price is 4.99.\n "},{"sku":185230,"name":"Duracell - C Batteries (4-Pack)","product_spec_in_natural_language":"Product with name: Duracell - C Batteries (4-Pack) belongs to multiple categories: Connected Home & Housewares, Housewares, Household Batteries.\n Description of the product is following:\n product desctiption: Compatible with select electronic devices; C size; DURALOCK Power Preserve technology; 4-pack.\n\n Manufacturer of the product is Duracell and price is 8.99.\n "},{"sku":185267,"name":"Duracell - D Batteries (4-Pack)","product_spec_in_natural_language":"Product with name: Duracell - D Batteries (4-Pack) belongs to multiple categories: Connected Home & Housewares, Housewares, Household Batteries.\n Description of the product is following:\n product desctiption: Compatible with select electronic devices; D size; DURALOCK Power Preserve technology; 4-pack.\n\n Manufacturer of the product is Duracell and price is 9.99.\n "},{"sku":312290,"name":"Duracell - 9V Batteries (2-Pack)","product_spec_in_natural_language":"Product with name: Duracell - 9V Batteries (2-Pack) belongs to multiple categories: Connected Home & Housewares, Housewares, Household Batteries.\n Description of the product is following:\n product desctiption: Compatible with select electronic devices; alkaline chemistry; 9V size; DURALOCK Power Preserve technology; 2-pack.\n\n Manufacturer of the product is Duracell and price is 7.99.\n "},{"sku":324884,"name":"Directed Electronics - Viper Audio Glass Break Sensor","product_spec_in_natural_language":"Product with name: Directed Electronics - Viper Audio Glass Break Sensor belongs to multiple categories: Carfi Instore Only, nan, nan.\n Description of the product is following:\n product desctiption: From our expanded online assortment; compatible with Directed Electronics alarm systems; microphone and microprocessor detect and analyze intrusions; detects quiet glass breaks.\n\n Manufacturer of the product is Directed Electronics and price is 39.99.\n "},{"sku":333179,"name":"Energizer - N Cell E90 Batteries (2-Pack)","product_spec_in_natural_language":"Product with name: Energizer - N Cell E90 Batteries (2-Pack) belongs to multiple categories: Connected Home & Housewares, Housewares, Household Batteries.\n Description of the product is following:\n product desctiption: Alkaline batteries; 1.5V.\n\n Manufacturer of the product is Energizer and price is 5.99.\n "},{"sku":346575,"name":"Metra - Radio Installation Dash Kit for Most 1989-2000 Ford, Lincoln & Mercury Vehicles - Black","product_spec_in_natural_language":"Product with name: Metra - Radio Installation Dash Kit for Most 1989-2000 Ford, Lincoln & Mercury Vehicles - Black belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: From our expanded online assortment; compatible with most 1989-2000 Ford, Lincoln and Mercury vehicles; snap-in TurboKit offers fast installation; spacer\/trim ring; rear support bracket.\n\n Manufacturer of the product is Metra and price is 16.99.\n "},{"sku":346646,"name":"Metra - Radio Dash Multikit for Select GM Vehicles - Black","product_spec_in_natural_language":"Product with name: Metra - Radio Dash Multikit for Select GM Vehicles - Black belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: From our expanded online assortment; compatible with select GM vehicles; plastic material.\n\n Manufacturer of the product is Metra and price is 16.99.\n "},{"sku":347137,"name":"Metra - Wiring Harness for Select 1998-2008 Ford Vehicles - Multicolored","product_spec_in_natural_language":"Product with name: Metra - Wiring Harness for Select 1998-2008 Ford Vehicles - Multicolored belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: Compatible with select 1998-2008 Ford vehicles; connects an aftermarket radio to a vehicle's harness.\n\n Manufacturer of the product is Metra and price is 16.99.\n "},{"sku":347146,"name":"Metra - Turbo Wire Aftermarket Radio Wire Harness Adapter for Select Vehicles","product_spec_in_natural_language":"Product with name: Metra - Turbo Wire Aftermarket Radio Wire Harness Adapter for Select Vehicles belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: Compatible with Honda and Acura vehicles; connects an aftermarket radio to your car's harness.\n\n Manufacturer of the product is Metra and price is 16.99.\n "},{"sku":347155,"name":"Metra - Wiring Harness for Most 1986-1998 Honda Acura Vehicles - Multicolored","product_spec_in_natural_language":"Product with name: Metra - Wiring Harness for Most 1986-1998 Honda Acura Vehicles - Multicolored belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: Compatible with most 1986-1998 Honda Acura vehicles; connects an aftermarket radio to a vehicle's harness.\n\n Manufacturer of the product is Metra and price is 16.99.\n "},{"sku":347333,"name":"METRA - Antenna Cable Adapter - Black","product_spec_in_natural_language":"Product with name: METRA - Antenna Cable Adapter - Black belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: Compatible with select 1988-2005 vehicles; adapts an aftermarket antenna to OEM radios; flat plug.\n\n Manufacturer of the product is METRA and price is 13.99.\n "},{"sku":349572,"name":"INSTALL - PORTABLE RADAR DETECTOR INST","product_spec_in_natural_language":"Product with name: INSTALL - PORTABLE RADAR DETECTOR INST belongs to multiple categories: In-Store Only, nan, nan.\n Description of the product is following:\n product desctiption: PORTABLE RADAR DETECTOR INST.\n\n Manufacturer of the product is INSTALL and price is 29.99.\n "},{"sku":373642,"name":"Jensen - 3.6V NiCad Battery for 900MHz Phones","product_spec_in_natural_language":"Product with name: Jensen - 3.6V NiCad Battery for 900MHz Phones belongs to multiple categories: Connected Home & Housewares, Telephones & Communication, Telephone Accessories.\n Description of the product is following:\n product desctiption: Rechargeable 3.6V 300 mAh NiCad battery for GE 2-9614 model cordless phones.\n\n Manufacturer of the product is Jensen and price is 19.99.\n "},{"sku":478398,"name":"Metra - Radio Installation Dash Kit for Select Ford, Mazda and Mercury Vehicles (Pair) - Black","product_spec_in_natural_language":"Product with name: Metra - Radio Installation Dash Kit for Select Ford, Mazda and Mercury Vehicles (Pair) - Black belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: From our expanded online assortment; compatible with select Ford, Mazda and Mercury vehicles; allows the installation of an aftermarket radio into the factory dash location; high-grade ABS plastic material.\n\n Manufacturer of the product is Metra and price is 16.99.\n "},{"sku":612732,"name":"Metra - 1\/4\" DIN Trim Ring for Most Vehicles","product_spec_in_natural_language":"Product with name: Metra - 1\/4\" DIN Trim Ring for Most Vehicles belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: Compatible with most vehicles; designed for the installation of an aftermarket radio.\n\n Manufacturer of the product is Metra and price is 10.99.\n "},{"sku":643600,"name":"Metra - Turbowire Radio Harness Adapter for Select Jeep Vehicles","product_spec_in_natural_language":"Product with name: Metra - Turbowire Radio Harness Adapter for Select Jeep Vehicles belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: Compatible with select Jeep vehicles; ABS and vinyl construction; colored-coded wires.\n\n Manufacturer of the product is Metra and price is 16.99.\n "},{"sku":643628,"name":"Metra - Speaker Connector for Select Volkswagen Vehicles","product_spec_in_natural_language":"Product with name: Metra - Speaker Connector for Select Volkswagen Vehicles belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: Compatible with select Volkswagen vehicles; connects a speaker to the vehicle's stereo; easy installation.\n\n Manufacturer of the product is Metra and price is 16.99.\n "},{"sku":643691,"name":"Metra - Speaker Connector for Select Mitsubishi and Chrysler Vehicles","product_spec_in_natural_language":"Product with name: Metra - Speaker Connector for Select Mitsubishi and Chrysler Vehicles belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: From our expanded online assortment; compatible with 1987 - 1993 Mitsubishi and Chrysler vehicles; color-coded wires.\n\n Manufacturer of the product is Metra and price is 19.99.\n "},{"sku":643717,"name":"Metra - Wiring Harness for Most 1990-2001 Mazda Vehicles - Multicolored","product_spec_in_natural_language":"Product with name: Metra - Wiring Harness for Most 1990-2001 Mazda Vehicles - Multicolored belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: Compatible with most 1990-2001 Mazda vehicles; connects an aftermarket radio to a vehicle's harness.\n\n Manufacturer of the product is Metra and price is 16.99.\n "},{"sku":673890,"name":"Metra - Professional Installer Series TurboKit","product_spec_in_natural_language":"Product with name: Metra - Professional Installer Series TurboKit belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: From our expanded online assortment; compatible with select Chevrolet, Geo and Suzuki vehicles; allows installation of an aftermarket radio; provision for a 1\/4\" or 1\/2\" DIN equalizer; mounts precisely to OEM radio mounting positions.\n\n Manufacturer of the product is Metra and price is 16.99.\n "},{"sku":677379,"name":"Metra - Wiring Harness for Most 1987 and Later Toyota Scion Vehicles - Multicolored","product_spec_in_natural_language":"Product with name: Metra - Wiring Harness for Most 1987 and Later Toyota Scion Vehicles - Multicolored belongs to multiple categories: Car Electronics & GPS, Car Installation Parts & Accessories, Car Audio Installation Parts.\n Description of the product is following:\n product desctiption: Compatible with most 1987 and later Toyota Scion vehicles; connects an aftermarket radio to a vehicle's harness.\n\n Manufacturer of the product is Metra and price is 16.99.\n "},{"sku":1002651,"name":"Polk Audio - 12\" Single-Voice-Coil 4-Ohm Subwoofer - Black","product_spec_in_natural_language":"Product with name: Polk Audio - 12\" Single-Voice-Coil 4-Ohm Subwoofer - Black belongs to multiple categories: Car Electronics & GPS, Car Audio, Car Subwoofers & Enclosures.\n Description of the product is following:\n product desctiption: 720W peak power handling; Klippel-optimized driver components; polymer woofer cone; butyl rubber surround.\n\n Manufacturer of the product is Polk Audio and price is 99.99.\n "},{"sku":1003003,"name":"Hard Rock TrackPak - Mac","product_spec_in_natural_language":"Product with name: Hard Rock TrackPak - Mac belongs to multiple categories: Musical Instruments, Recording Equipment, Sound Recording Software.\n Description of the product is following:\n product desctiption: HAL LEONARD Hard Rock TrackPak: Features 12 hard rock and metal Apple Loops; compatible with GarageBand; includes guitars, bass, drums and synth parts.\n\n Manufacturer of the product is Hal Leonard and price is 29.99.\n "},{"sku":1003012,"name":"Aquarius - Fender Playing Cards Gift Tin - Red\/Black","product_spec_in_natural_language":"Product with name: Aquarius - Fender Playing Cards Gift Tin - Red\/Black belongs to multiple categories: Toys, Games & Drones, TV, Movie & Character Toys, Music Memorabilia.\n Description of the product is following:\n product desctiption: AQUARIUS Fender Playing Cards Gift Tin: 2 decks; hinged gift tin; 52 different images per deck.\n\n Manufacturer of the product is Aquarius and price is 13.99.\n "},{"sku":1003021,"name":"LoDuca Bros Inc - Deluxe Keyboard Bench - Black","product_spec_in_natural_language":"Product with name: LoDuca Bros Inc - Deluxe Keyboard Bench - Black belongs to multiple categories: Musical Instruments, Musical Instrument Accessories, Keyboard Accessories.\n Description of the product is following:\n product desctiption: LODUCA BROS. INC. Deluxe Keyboard Bench: Metal base; 13\" x 24\" padded seat; cross brace for support; adjusts to 3 different heights; can fit up to 2 people; folding design.\n\n Manufacturer of the product is LoDuca Bros Inc and price is 79.99.\n "},{"sku":1003049,"name":"Trumpet Multimedia - Trumpets That Work 2015 Calendar - Black","product_spec_in_natural_language":"Product with name: Trumpet Multimedia - Trumpets That Work 2015 Calendar - Black belongs to multiple categories: Toys, Games & Drones, TV, Movie & Character Toys, More Pop Culture Merchandise.\n Description of the product is following:\n product desctiption: TRUMPET MULTIMEDIA Trumpets That Work 2015 Calendar: 2015 calendar; Trumpets That Work design.\n\n Manufacturer of the product is Trumpet Multimedia and price is 23.95.\n "},{"sku":1003067,"name":"Pro Tools Tier 1 Audio Plug-In for PC and Mac Activation Card - Windows|Mac","product_spec_in_natural_language":"Product with name: Pro Tools Tier 1 Audio Plug-In for PC and Mac Activation Card - Windows|Mac belongs to multiple categories: Musical Instruments, Recording Equipment, Sound Recording Software.\n Description of the product is following:\n product desctiption: AVID Pro Tools Tier 1 Audio Plug-In for PC and Mac Activation Card: Compatible with PC and Mac; redeemable for a (TL) Aggro, Bruno\/Reso, Cosmonaut Voice, DINR, (TL) Drum Rehab, (TL) EveryPhase, Reel Tape Saturation or other Avid Tier 1-level plug-in.\n\n Manufacturer of the product is Avid and price is 99.0.\n "},{"sku":1003076,"name":"M-Audio - BX8 D2 Studio Monitors (Pair) - Black","product_spec_in_natural_language":"Product with name: M-Audio - BX8 D2 Studio Monitors (Pair) - Black belongs to multiple categories: Musical Instruments, Microphones & Live Sound, Live Sound Speakers.\n Description of the product is following:\n product desctiption: M-AUDIO BX8 D2 Studio Monitors (Pair): Custom Class AB analog amplifiers; woven low-frequency driver; waveguide-loaded silk-dome tweeter; XLR and 1\/4\" inputs.\n\n Manufacturer of the product is M-Audio and price is 599.95.\n "},{"sku":1003085,"name":"Aquarius - Grateful Dead Skull Logo Chunky Magnet - Red\/White\/Blue","product_spec_in_natural_language":"Product with name: Aquarius - Grateful Dead Skull Logo Chunky Magnet - Red\/White\/Blue belongs to multiple categories: Toys, Games & Drones, TV, Movie & Character Toys, More Pop Culture Merchandise.\n Description of the product is following:\n product desctiption: AQUARIUS Grateful Dead Skull Logo Chunky Magnet: Features the iconic Grateful Dead skull logo; magnet; chunky design.\n\n Manufacturer of the product is Aquarius and price is 5.99.\n "},{"sku":1003109,"name":"Alesis - AcousticLink Guitar Recording Pack - White","product_spec_in_natural_language":"Product with name: Alesis - AcousticLink Guitar Recording Pack - White belongs to multiple categories: Musical Instruments, Recording Equipment, Audio Interfaces.\n Description of the product is following:\n product desctiption: ALESIS AcousticLink Guitar Recording Pack: Compatible with most guitars with a 1\/4\" connector; built-in analog-to-digital conversion; includes a 16.5' GuitarLink 1\/4\"-to-USB cable, no-drill acoustic guitar pickup and Cubase LE recording software.\n\n Manufacturer of the product is Alesis and price is 79.0.\n "},{"sku":1003127,"name":"Modern Rock TrackPak - Mac","product_spec_in_natural_language":"Product with name: Modern Rock TrackPak - Mac belongs to multiple categories: Musical Instruments, Recording Equipment, Sound Recording Software.\n Description of the product is following:\n product desctiption: HAL LEONARD Modern Rock TrackPak: Features 12 modern rock Apple Loops; compatible with GarageBand; includes complete songs, plus individual loops, beats, grooves and riffs for each song's instruments.\n\n Manufacturer of the product is Hal Leonard and price is 29.95.\n "},{"sku":1003136,"name":"1970s Rock TrackPak - Mac","product_spec_in_natural_language":"Product with name: 1970s Rock TrackPak - Mac belongs to multiple categories: Musical Instruments, Recording Equipment, Sound Recording Software.\n Description of the product is following:\n product desctiption: HAL LEONARD 1970s Rock TrackPak: Features 12 classic rock songs; compatible with GarageBand; includes loops for each instrument.\n\n Manufacturer of the product is Hal Leonard and price is 29.99.\n "},{"sku":1003145,"name":"LoDuca Bros Inc - Professional Digital Photo Studio Kit - Black\/White\/Blue","product_spec_in_natural_language":"Product with name: LoDuca Bros Inc - Professional Digital Photo Studio Kit - Black\/White\/Blue belongs to multiple categories: Musical Instruments, Musical Instrument Accessories, Other Musical Instrument Accessories.\n Description of the product is following:\n product desctiption: LODUCA BROS INC Professional Digital Photo Studio Kit: Lets you take professional-quality photos; includes 2 high-output tabletop lights, a 16\" cubed soft-lighting frame and an adjustable mini tabletop tripod; multicompartment, padded carrying case.\n\n Manufacturer of the product is LoDuca Bros Inc and price is 49.99.\n "},{"sku":1003163,"name":"Groovy Shapes Volume 1 - Windows|Mac","product_spec_in_natural_language":"Product with name: Groovy Shapes Volume 1 - Windows|Mac belongs to multiple categories: Musical Instruments, Recording Equipment, Sound Recording Software.\n Description of the product is following:\n product desctiption: SIBELIUS Groovy Shapes Volume 1: Teaches the basics of sound, rhythm, pitch and composition; guides students through progressive exercises; lets students create original music; for ages 5 to 7 years.\n\n Manufacturer of the product is Sibelius and price is 69.95.\n "},{"sku":1003172,"name":"PreSonus - AudioBox iTwo Recording System - Blue\/Gray","product_spec_in_natural_language":"Product with name: PreSonus - AudioBox iTwo Recording System - Blue\/Gray belongs to multiple categories: Musical Instruments, Recording Equipment, Audio Interfaces.\n Description of the product is following:\n product desctiption: PRESONUS AudioBox iTwo Recording System: Compatible with Apple iPad, Windows and Mac recording software; 2 combo microphone\/line\/instrument inputs; Class A microphone preamplifier; balanced TRS monitor output; MIDI I\/O; 24-bit\/96kHz converters.\n\n Manufacturer of the product is PreSonus and price is 159.99.\n "},{"sku":1003214,"name":"PreSonus - AudioBox iOne Recording System - Blue\/Gray","product_spec_in_natural_language":"Product with name: PreSonus - AudioBox iOne Recording System - Blue\/Gray belongs to multiple categories: Musical Instruments, Recording Equipment, Audio Interfaces.\n Description of the product is following:\n product desctiption: PRESONUS AudioBox iOne Recording System: Compatible with Apple iPad, Windows and Mac recording software; instrument and microphone inputs; Class A microphone preamplifier; balanced TRS monitor output; 24-bit\/96kHz converters.\n\n Manufacturer of the product is PreSonus and price is 159.95.\n "},{"sku":1003232,"name":"Aquarius - Grateful Dead Bear Logo Chunky Magnet - Green\/Yellow\/Blue\/Purple\/Red\/Orange\/Black","product_spec_in_natural_language":"Product with name: Aquarius - Grateful Dead Bear Logo Chunky Magnet - Green\/Yellow\/Blue\/Purple\/Red\/Orange\/Black belongs to multiple categories: Toys, Games & Drones, TV, Movie & Character Toys, More Pop Culture Merchandise.\n Description of the product is following:\n product desctiption: AQUARIUS Grateful Dead Bear Logo Chunky Magnet: Tie-dyed Grateful Dead bear logo; chunky design.\n\n Manufacturer of the product is Aquarius and price is 5.99.\n "},{"sku":1003269,"name":"Addictive Keys: Studio Collection - Mac|Windows","product_spec_in_natural_language":"Product with name: Addictive Keys: Studio Collection - Mac|Windows belongs to multiple categories: Musical Instruments, Recording Equipment, Sound Recording Software.\n Description of the product is following:\n product desctiption: XLN AUDIO Addictive Keys: Studio Collection: Ideal for music producers and musicians; features virtual keyboard instruments; compatible with newer major hosts and DAWs.\n\n Manufacturer of the product is XLN Audio and price is 179.0.\n "},{"sku":1003278,"name":"Pro Tools Tier 2 Audio Plug-In for PC and Mac Activation Card - Windows|Mac","product_spec_in_natural_language":"Product with name: Pro Tools Tier 2 Audio Plug-In for PC and Mac Activation Card - Windows|Mac belongs to multiple categories: Musical Instruments, Recording Equipment, Sound Recording Software.\n Description of the product is following:\n product desctiption: AVID Pro Tools Tier 2 Audio Plug-In for PC and Mac Activation Card: Compatible with PC and Mac; redeemable for a Classic Compressors Bundle, Focusrite d2\/d3, Impact, JOEMEEK Bundle, Moogerfooger Bundle or other Avid Tier 2-level plug-in.\n\n Manufacturer of the product is Avid and price is 299.0.\n "},{"sku":1003287,"name":"Korg - nanoKey2 25-Key USB MIDI Controller - White\/Gray","product_spec_in_natural_language":"Product with name: Korg - nanoKey2 25-Key USB MIDI Controller - White\/Gray belongs to multiple categories: Musical Instruments, Keyboards, Midi Keyboards & Controllers.\n Description of the product is following:\n product desctiption: KORG nanoKey2 25-Key USB MIDI Controller: USB MIDI connectivity; 25 velocity-sensitive keys; compatible with the Korg microKEY; PC and Mac compatible.\n\n Manufacturer of the product is Korg and price is 49.99.\n "},{"sku":1003296,"name":"M-Audio - Nova Condenser Microphone - Silver","product_spec_in_natural_language":"Product with name: M-Audio - Nova Condenser Microphone - Silver belongs to multiple categories: Musical Instruments, Microphones & Live Sound, Microphones & Accessories.\n Description of the product is following:\n product desctiption: M-AUDIO Nova Condenser Microphone: 1.1\" evaporated gold diaphragm; solid brass body and capsule; 20Hz - 18kHz frequency response; hard mount and soft case included.\n\n Manufacturer of the product is M-Audio and price is 99.99.\n "},{"sku":1003319,"name":"IK Multimedia - iRig Stomp - Black","product_spec_in_natural_language":"Product with name: IK Multimedia - iRig Stomp - Black belongs to multiple categories: Musical Instruments, Musical Instrument Accessories, DJ Equipment Accessories.\n Description of the product is following:\n product desctiption: IK MULTIMEDIA iRig Stomp: Compatible with select Apple iPhone, iPad and iPod touch models, Android and Mac computers; allows use inline with other effects pedals and more; active battery-powered output circuit.\n\n Manufacturer of the product is IK Multimedia and price is 59.99.\n "},{"sku":1003328,"name":"IK Multimedia - iKlip Xpand Microphone Stand Mount - Black","product_spec_in_natural_language":"Product with name: IK Multimedia - iKlip Xpand Microphone Stand Mount - Black belongs to multiple categories: Musical Instruments, Recording Equipment, Recording Furniture & Stands.\n Description of the product is following:\n product desctiption: IK MULTIMEDIA iKlip Xpand Microphone Stand Mount: Compatible with most tablets from 7\" to 12.1\"; adjustable holder with 4 expandable grips; 2 sure-grip rubber gripping points; rubber padded base; ball joint; smart bracket design; iKlip Stage app.\n\n Manufacturer of the product is IK Multimedia and price is 49.99.\n "},{"sku":1003337,"name":"M-Audio - AM1 Cardioid Dynamic Microphone - Black\/Gray","product_spec_in_natural_language":"Product with name: M-Audio - AM1 Cardioid Dynamic Microphone - Black\/Gray belongs to multiple categories: Musical Instruments, Microphones & Live Sound, Microphones & Accessories.\n Description of the product is following:\n product desctiption: M-AUDIO AM1 Cardioid Dynamic Microphone: For amplifying and recording vocals and instruments; dynamic design; cardioid pickup pattern; steel mesh, foam-lined head grille; die-cast, zinc-alloy housing.\n\n Manufacturer of the product is M-Audio and price is 29.95.\n "},{"sku":1003346,"name":"Elements Pack - Mac|Windows","product_spec_in_natural_language":"Product with name: Elements Pack - Mac|Windows belongs to multiple categories: Musical Instruments, Recording Equipment, Sound Recording Software.\n Description of the product is following:\n product desctiption: STEINBERG Elements Pack: Includes Cubase Elements 6 and WaveLab Elements 7 software; lets you produce music and edit audio on your Mac or PC.\n\n Manufacturer of the product is Steinberg and price is 174.99.\n "},{"sku":1003364,"name":"IK Multimedia - iKlip Xpand Mini Microphone Stand Mount - Black","product_spec_in_natural_language":"Product with name: IK Multimedia - iKlip Xpand Mini Microphone Stand Mount - Black belongs to multiple categories: Musical Instruments, Recording Equipment, Recording Furniture & Stands.\n Description of the product is following:\n product desctiption: IK MULTIMEDIA iKlip Xpand Mini Microphone Stand Mount: Compatible with select Apple iPhone and iPod touch models and most smartphones with 3.5\" to 6\" screens; rubberized Gorilla Grip technology; adjustable clamp; ball joint.\n\n Manufacturer of the product is IK Multimedia and price is 39.99.\n "}]
requirements.txt CHANGED
@@ -1,3 +1,5 @@
1
  chainlit
2
  langchain
3
- openai
 
 
 
1
  chainlit
2
  langchain
3
+ openai
4
+ chromadb
5
+ tiktoken