CODE-LLAMA For Talking to Code Base and Documentation

  Рет қаралды 23,861

Prompt Engineering

Prompt Engineering

Күн бұрын

Пікірлер: 75
@rehberim360
@rehberim360 Жыл бұрын
It's one of the rare channels where I've been happy to see a new video notification for a long time. I'm waiting for the next time to come. I feel so lucky that you post videos very often and tell us the latest information perfectly. We don't want to lose you, keep it up bro
@kevinyuan2735
@kevinyuan2735 Жыл бұрын
谢谢!
@engineerprompt
@engineerprompt Жыл бұрын
Thank you 🙏
@andrzejpec4886
@andrzejpec4886 Жыл бұрын
First second I hear Indian accent = Imma'bout to get pure useful information from this video, this is for sure. Thx for the video though 1 thing - when you talk about "previous video" at the beginning of the video, I'd consider to provide this "leading link" that shows in the corner because I'm not familiar and have to dig into your feed to find it. Not a great issue but still - just a tip to consider.
@vswraith
@vswraith Жыл бұрын
Can you share the notebook link?
@RobertoFabrizi
@RobertoFabrizi Жыл бұрын
How do I ask questions that hit the same file, for example if I want to know how many different constructors a certain class has? I tried everthing and it always came back to me with an inferior number to the actual ones
@ayusharora390
@ayusharora390 23 күн бұрын
Is there a way to load multiple repos for the solution you showed. I have like 10 repos and i need my model to answer based on all the different code bases.
@japorto100
@japorto100 Жыл бұрын
Hi Prompt Engineer. Amazing stuff as always. I just have a question about embedding in the Chroma DB in general. Where can i find the different Embedding models and how can i speed the embedding process up. Because for lets say 100 documents i think the app would crash. Doesnt seems scalable. Or am i getting something wrong here?
@kamadelva1235
@kamadelva1235 9 ай бұрын
you can use something like this : embeddings = SentenceTransformerEmbeddings( model_name= "sentence-transformers/all-MiniLM-l6-v2", model_kwargs= {'device':'cuda'}, encode_kwargs= {'normalize_embeddings': False}) Chroma.from_documents( chunks, embeddings)
@RuchikaDas-x6k
@RuchikaDas-x6k Жыл бұрын
Hi,thanks for the tutorial but I am facing a RateLimitError while executing this particular line of code :"db = Chroma.from_documents(texts, OpenAIEmbeddings(disallowed_special=()))" for both Code-LLAMA and GPT-4 LLM .How can I solve this error?
@kamadelva1235
@kamadelva1235 9 ай бұрын
use a different embeddings, like embeddings = SentenceTransformerEmbeddings( model_name= "sentence-transformers/all-MiniLM-l6-v2", model_kwargs= {'device':'cuda'}, encode_kwargs= {'normalize_embeddings': False})
@danaelifaz4835
@danaelifaz4835 8 ай бұрын
Thank you for the video. I get 0 documents loaded when integrating the code to my Python script. does this work on Windows?
@adnanrizve5551
@adnanrizve5551 Жыл бұрын
How we can restrict the answers to the given context? No matter one what codebase I am creating embedding, the model LLM is given responses based on it pretrained data
@engineerprompt
@engineerprompt Жыл бұрын
You will need to provide a system prompt. Check out my latest video on localgpt. There is an example prompt
@CesarVegaL
@CesarVegaL Жыл бұрын
Thank you for your videos. I would appreciate if you publish the notebook
@CognitiveComputations
@CognitiveComputations Жыл бұрын
This is really great!
@engineerprompt
@engineerprompt Жыл бұрын
Thank you 🙏
@finnsteur5639
@finnsteur5639 Жыл бұрын
Nice video! I had a question. What would be the best and fastest small model to use on an old cpu? Like 6th generation i5 for example. I heard of orcamini3b and falcon1b what do you think?
@bakistas20
@bakistas20 Жыл бұрын
What's the difference between those two prompts you defined: sys prompt way and the simple one?
@mehulparmar9976
@mehulparmar9976 9 ай бұрын
How to generate code documentation from codellama? The input will be a class or method in java.
@TheCopernicus1
@TheCopernicus1 Жыл бұрын
Amazing mate!
@engineerprompt
@engineerprompt Жыл бұрын
Thank you! Cheers!
@7stuti
@7stuti 8 ай бұрын
Can I use codellama-7b-hf model with langchain
@alefdoreu
@alefdoreu Жыл бұрын
Can I use GGUF model my gpu doesnt have enough VRAM
@sunilanthony17
@sunilanthony17 Жыл бұрын
Please do a video to setup GPU on a windows machine. I've been trying for days to use my GPU and can't get it to work. I've installed CMAKE, CUDA developer tools and etc. Nothing works. I have two GPUs on my laptop.
@malleswararaomaguluri6344
@malleswararaomaguluri6344 Жыл бұрын
can we run llama2 model in windows machine with gpu with own documents. let me suggest which video will give information about this. mostly i am getting error while downloading data from meta llm using hugging face api.
@THEVIERAOS
@THEVIERAOS Жыл бұрын
Are the models from hugging face the same as those released by Meta?
@akshathreddy158
@akshathreddy158 7 ай бұрын
It is for python code base. I tried for Java code base but it doesn't work. Can you suggest on this
@shalabhgarg8225
@shalabhgarg8225 9 ай бұрын
all examples are on python code base, trying to make it work for Csharp code base but it doesnt work
@NaveenKumar-hb4qz
@NaveenKumar-hb4qz 2 ай бұрын
thank you for this video, could you please share the notebook or git link of this
@MrBorkori
@MrBorkori Жыл бұрын
When I'm trying with your template that you describe in the video. I'm getting strange answer when I print the output from: # Docs question = "{Current Question}" docs = retriever.get_relevant_documents(question) print(docs) [Document(page_content='ans = qa.run(\'Based on the stg_jaffle_shop.yml file generate sample csv data for each table with minimum 100 rows. The sample data should be with foreign key constraint.\') # \'Write a test case for the database connection using unittest.\' #\'Write a test case for the code in connection.py using unittest.\' #\'Based on the .yml files generate sample csv data for jaffle_shop_customers table with 100 rows\' I see that they are in comments ... but the answer from model is the following..... "This request is not clear to me. Please provide more details so we can help you better. Do you want us to generate sample CSV files or do you want to create a test case using unittest? " it looks like the LLM model doesn't recognize the right question.
@andy111007
@andy111007 Жыл бұрын
Thanks for the Amazing tutorial, Not able to get BLAS=1, created a ticket for the same. Looking forward to hearing from you
@CognitiveComputations
@CognitiveComputations Жыл бұрын
Can you please give an example that loads 34b instead of 13b? For some reason, I can't get it to work with 34b,
@engineerprompt
@engineerprompt Жыл бұрын
I will have a look at it today, are you trying gguf format?
@haroonmansi
@haroonmansi Жыл бұрын
thanks! if we do not want to use OpenAI embedding, what open source one you recommend for python code in this case? FAISS will be fine?
@engineerprompt
@engineerprompt Жыл бұрын
For embeddings, I like to use the instructors embeddings. FAISS will be fine as well.
@haroonmansi
@haroonmansi Жыл бұрын
Thanks! @@engineerprompt
@yusufkemaldemir9393
@yusufkemaldemir9393 Жыл бұрын
i did not see the notebook attachment. will you provide it? is this applicable to link to ui?
@engineerprompt
@engineerprompt Жыл бұрын
The link to documentation is in the description where the code is, should work with UI as well
@Shahidma58
@Shahidma58 Жыл бұрын
Here also openAPI key is required. Is there anyway to access hugging face models without API key or with some free Key?
@engineerprompt
@engineerprompt Жыл бұрын
Yes, should have highlighted more, the openai api key is required for the embedding model, you can replace his by any other open source embedding model and this should work
@Shahidma58
@Shahidma58 Жыл бұрын
Hi, thanks for your response, I have just started learning the long-chain and for the time being, I am not able to purchase chatPGPT for API key but I want to develop some apps using hugging face models to develop the apps, like 'Ask the doc' to read PDF and answer the questions. I will buy chatGPT if my app goes through the testing. Best Regards,
@Finwe2
@Finwe2 Жыл бұрын
Do we have to use LlamaCpp for RAG?
@engineerprompt
@engineerprompt Жыл бұрын
Not really, it’s just for using the ggml/gguf models
@Finwe2
@Finwe2 Жыл бұрын
@@engineerprompt Hm yeah I couldn't get RAG to work properly with my org's source code. Even tried to use it with LlamaCpp and the llm = pipeline() -> llm("my prompt") method
@echofloripa
@echofloripa Жыл бұрын
Is it possible to run this on Google colab?
@engineerprompt
@engineerprompt Жыл бұрын
Yes, you probably want to use the 7B model
@korchi
@korchi Жыл бұрын
Is it possible to use your localGPT project with Code-LLAMA (and ingest code to ChromaDB)?
@engineerprompt
@engineerprompt Жыл бұрын
Yes but you will need to change the document loader part in the code. Will also need to make changes to the splitter part, the rest will work just fine.
@mohammedsuhail1500
@mohammedsuhail1500 9 ай бұрын
Thanks brother
@dave47663
@dave47663 3 ай бұрын
How is that interacting with the codebase? That's just generic how to init a react app that any gpt can do without knowing anything about the codebase.
@janalgos
@janalgos Жыл бұрын
Could you do a video about Cursor? So far to me seems very useful and better than copilot
@parasetamol6261
@parasetamol6261 Жыл бұрын
what is differrence form this and copilot
@janalgos
@janalgos Жыл бұрын
@@parasetamol6261 easier and more integrated compared to tabnine/copilot
@CrispinCourtenay
@CrispinCourtenay Жыл бұрын
Can you list system specs, rather than just stating that you used a GPU?
@engineerprompt
@engineerprompt Жыл бұрын
I have M2 Max 96GB
@jerryyuan3958
@jerryyuan3958 Жыл бұрын
Can u share the codelab code ?
@engineerprompt
@engineerprompt Жыл бұрын
Yes? Will put together it in a colab and share
@FranciscoMonteiro25
@FranciscoMonteiro25 Жыл бұрын
@@engineerprompt where can i find your github repo Sir?
@3lbios
@3lbios Жыл бұрын
Nice vid, but you can't just use any generic embeddings model, you'd need something that works well for code and that's tough. OpenAI is probably one of the best still. Also anyone who uses GPT4 for code and tries 13B CodeLlama, or 34B even, is going to be sad. It's as bad as GPT3.5, mostly worse. Kind of useless for any higher level reasoning. Also if you're using it for Python why not use the Python-specific CodeLlama model that was optimized exactly for Python use?
@cudaking777
@cudaking777 Жыл бұрын
My comments get deleted not sure what is happing
@alx8439
@alx8439 Жыл бұрын
Why are you saying "GPU" in relation to M2? It's arm CPU and llama.cpp project just uses very bespoke optimizations for that CPU, but not the GPU
@erikjohnson9112
@erikjohnson9112 Жыл бұрын
M2 has integrated GPU.
@alx8439
@alx8439 Жыл бұрын
@@erikjohnson9112 and the whole thing is having power supply and LCD screen. But what does it have to do with inference?
@LIMLIMLIM111
@LIMLIMLIM111 2 ай бұрын
Looks like if using M series, there is no cuda, so you can't really use gpu. I am not really sure what the author is using, but I don't think Mac can use GPU here.
@VOKorporation
@VOKorporation Жыл бұрын
Add collaboration file please
@pabloartero1155
@pabloartero1155 11 ай бұрын
I actually wanted to talk to my code to ask why it's so bad.
@RickySupriyadi
@RickySupriyadi Жыл бұрын
hello
@MrBorkori
@MrBorkori Жыл бұрын
Again very useful video, Thank you very much!! I'm new in this area and it's not clear .... I have a concern about embedding function/model - if you use OpenAIEmbeddings should I worry about some privacy concerns in cases involving sensitive data. I have already tried with open source model embedding like HuggingFaceInstructEmbeddings model_name = "hkunlp/instructor-large" but when I try to load it into Chroma gives me the following error message: chromadb.errors.InvalidDimensionException: Embedding dimension 384 does not match collection dimensionality 1536
@engineerprompt
@engineerprompt Жыл бұрын
Yes, you are sharing your data with openai. I regards to that error, simply delete your vector store and then rerun the embedding computation, this should work. Basically you have existing vector store where embeddings have different dimensions. You want to recompute everything from scratch
@MrBorkori
@MrBorkori Жыл бұрын
It works - Thank you a lot again!! You save me from headache!!@@engineerprompt
@csowm5je
@csowm5je Жыл бұрын
docs = retriever.get_relevant_documents(question), not sure what is this "retriever". getting NameError: name 'retriever' is not defined
@csowm5je
@csowm5je Жыл бұрын
had to include previous video code to make it work. Thanks
@DurgeshParekh
@DurgeshParekh Жыл бұрын
This is very insightful tutorial I have applied this but I have doubt how you have created retriever object for Llama? retriever.get_relevant_documents(questions)
LocalGPT Updates - Tips & Tricks
19:38
Prompt Engineering
Рет қаралды 23 М.
Talk to Your Documents, Powered by Llama-Index
17:32
Prompt Engineering
Рет қаралды 88 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
host ALL your AI locally
24:20
NetworkChuck
Рет қаралды 1,5 МЛН
Kerbal Space Program 2 Was Murdered.
11:26
Bellular News
Рет қаралды 30 М.
LocalGPT API: Build Powerful Doc Chat Apps
14:43
Prompt Engineering
Рет қаралды 31 М.
Is CODE LLAMA Really Better Than GPT4 For Coding?!
10:21
Matthew Berman
Рет қаралды 113 М.
Meta AI's Code Llama 70B in 7 Minutes
7:29
Developers Digest
Рет қаралды 7 М.
🚀 MetaGPT Setup: Launch a Startup with One ✍️ Prompt!
14:15
Prompt Engineering
Рет қаралды 25 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН